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

前端 未结 2 456
余生分开走
余生分开走 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.

提交回复
热议问题