iDevGames Forums
Chipmunk 5.3.0 released! - Printable Version

+- iDevGames Forums (
+-- Forum: Community Zone (/forum-4.html)
+--- Forum: Announcements (/forum-17.html)
+--- Thread: Chipmunk 5.3.0 released! (/thread-7969.html)

Chipmunk 5.3.0 released! - Skorche - Aug 9, 2010 08:14 PM

Chipmunk 5.3.0 is out! The biggest new feature is that I've added the ability for inactive objects to fall asleep, reducing the CPU and battery usage. There are a number of other smaller performance improvements and fixes as well.

Source Code
OSX Demo Binary
Windows Demo Binary
iPhone Demo App

  • FIX: Fixed the source so it can compile as C, C++, Objective-C, and Objective-C++.
  • FIX: Fixed cp_contact_persistence. It was broken so that it would forget collision solutions after 1 frame instead of respecting the value set.
  • OPTIMIZATION: Several minor optimizations have been added. Though performance should only differ by a few percent.
  • OPTIMIZATION: Chipmunk now supports putting bodies to sleep when they become inactive.
  • API: Elastic iterations are now deprecated as they should no longer be necessary.
  • API: Added API elements to support body sleeping.
  • API: Added a statically allocated static body to each space for attaching static shapes to.
  • API: Static shapes attached to the space's static body can simply be added to the space using cpSpaceAddShape().
  • NEW: New MSVC projects.
  • NEW: Added boolean and time stamp types for clarity.

We've also included the Objective-C wrapper as well as some sample code from shipping iPhone Apps. The primary advantages of a native Objective-C API include integrating with the Cocoa memory management model and the Chipmunk Object protocol. The Chipmunk Object protocol unifies the basic Chipmunk types as well as making it easy to create custom composite collections of the basic types. Additionally, the wrapper adds many convenience methods for doing common setup tasks as well as helper methods that integrate it with the rest of the Cocoa Touch API. The wrapper tries to do things the Objective-C way, adding useful method variations where it makes sense to do so. Objective-Chipmunk is cheap to license and it will definitely save you time and money developing Chipmunk based iPhone apps.

RE: Chipmunk 5.3.0 released! - AndyKorth - Aug 9, 2010 10:10 PM

Looks great!

RE: Chipmunk 5.3.0 released! - Frank C. - Aug 10, 2010 01:16 PM

Nice work as always (especially the auto-sleep).

The current game I'm working on doesn't use Chipmunk, and my next one likely won't either, but after that I'm all over this - and you'll be at version 10 Grin

RE: Chipmunk 5.3.0 released! - Oddity007 - Aug 10, 2010 02:07 PM

It'd be interesting to see performance comparisons of this and ODE. I imagine that Chipmunk would be faster for the reason of having less dimensions to consider, but ODE might be more tuned with age.

RE: Chipmunk 5.3.0 released! - AndyKorth - Aug 13, 2010 12:29 PM

We've created a pretty cool AND cheesy promotional video for chipmunk that shows off a bunch of games that various people have made using the engine: