I totally forgot to post about this here!
The goods:
Source (Should build on OSX, Linux and Windows and iPhone)
OSX Demo binary (built from the source code above)
I've been sitting on a large number of Chipmunk changes without an official release for almost a year and a half now. Time to stop being lazy!
New features in no particular order:
- New joints/constraints system. Much more flexible and programable than before. Joints have adjustable parameters now so you can use them like servos and the like. There are also a ton of new joints. (see below)
- Raycasting. Actually just line segment queries, but should be about as useful and is implemented very efficiently.
- New collision callback API. You now can register callbacks for collision begin/separate events among other useful things.
- Sensor shapes. Collision shapes that call callbacks but don't generate collisions, like sensors in Box2D or triggers in Unity.
- API for safely removing objects from the space during callbacks.
The demos distributed with the Chipmunk source show you how to use the new features such as raycasting and using the delayed callbacks for removing objects. They also demonstrate some tricks using the collision callbacks for doing things like platformer controls and one way platforms.
The documentation on the Google Code wiki is also up to date for the new version.
Video demonstration of new joint types.
| Get the Flash Video |