chipmunk

What is Chipmunk? (Apart from being a Physics Engine)

点点圈 提交于 2019-12-02 00:48:47
问题 Hopefully, this question isn't a dumb as I fear it sounds, but it may still be pretty dumb. I'm new to Objective-C, and Cocoa. In fact, I'm completely new to C in general. I'm trying to implement an iPhone game using Cocos2d-iPhone. It's a game I've made before in Flash, so I thought it would be a nice way to lean Objective C, cocoa and cocos2d. One thing I am having a big problem with is understanding why all the Chipmunk code looks different to all the normal Objective-C stuff. For example,

What is Chipmunk? (Apart from being a Physics Engine)

£可爱£侵袭症+ 提交于 2019-12-02 00:00:48
Hopefully, this question isn't a dumb as I fear it sounds, but it may still be pretty dumb. I'm new to Objective-C, and Cocoa. In fact, I'm completely new to C in general. I'm trying to implement an iPhone game using Cocos2d-iPhone . It's a game I've made before in Flash, so I thought it would be a nice way to lean Objective C, cocoa and cocos2d. One thing I am having a big problem with is understanding why all the Chipmunk code looks different to all the normal Objective-C stuff. For example, there's stuff like chipmunkBody->position.x which I thought would have been chipmunkBody.position.x