是否有适用于iPhone / iPod touch和iPad的物理引擎SDK?
问题描述:
是否有适用于iPhone / iPod touch和iPad的物理引擎SDK?
Is there any physics engine SDK for iPhone/iPod touch and iPad?
答
Chipmunk引擎是用C语言编写的,他们甚至提供了一个Objective-C包装器。
The Chipmunk engine is written in C, and they've even provided an Objective-C wrapper.
Box2D引擎是用C ++编写的,所以它可以是编辑/链接到iPhone OS项目,告诉Xcode将其视为Objective-C ++。
The Box2D engine is written in C++, and so it can be compiled/linked into an iPhone OS project by telling Xcode to treat it as Objective-C++.
两者都非常好。 (我只是广泛使用Box2D,但我也听说过有关Chipmunk的好消息。)
Both are excellent. (I've only extensively used Box2D, but I've heard great things about Chipmunk too.)