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

前端 未结 2 455
余生分开走
余生分开走 2021-01-20 17:52

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 i

相关标签:
2条回答
  • 2021-01-20 18:15

    I haven't used Chipmunk, but it's probably written in C/C++. That's the reason.

    EDIT: Yup, it's written in C.

    chipmunkBody is a pointer to a struct, and the arrow operator (->) is how you access the members of a struct through a pointer to the struct in C.

    0 讨论(0)
  • 2021-01-20 18:16

    In case you're looking for an easy way to use Chipmunk thru way of Objective-C, Theres a nice little post about an Objective-C class called SpaceManager here: http://www.mobile-bros.com/?p=126

    0 讨论(0)
提交回复
热议问题