6

Is there any physics engine SDK for iPhone/iPod touch and iPad?

Roman Kagan
  • 10,082
  • 24
  • 79
  • 123
  • [This post might be helpful](http://stackoverflow.com/questions/715149/what-is-chipmunk-apart-from-being-a-physics-engine). (It's not really a duplicate of this question.) – John Apr 23 '10 at 02:29
  • If you're looking for an Objective-C version of Box2D, try Boxjective2D: http://www.koboldtouch.com/display/KTD/Objective-C+Physics+Engine – LearnCocos2D May 11 '13 at 22:13

2 Answers2

4

The Chipmunk engine is written in C, and they've even provided an Objective-C wrapper.

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++.

Both are excellent. (I've only extensively used Box2D, but I've heard great things about Chipmunk too.)

Jesse Beder
  • 30,017
  • 18
  • 97
  • 140
3

I've used the SIO2 engine for developing games on the iPhone, and it uses the open-source physics engine bullet. I'm not sure if all the soft-body features are available, but certainly the rigid body ones are. I don't know if anybody has written an Objective-C wrapper, but you certainly don't need one.

Nicholas M T Elliott
  • 3,258
  • 2
  • 17
  • 15