Skip Navigation

Ramblings from the team at zinc Roe

Metal Fish Eggs

iPhone and Box2D

For the next version of Arctic Shuffle, we’re using an open source 2D physics engine called Box2D to improve the gameplay. There seems to be a lot of interest in Box2D for the iPhone, but I haven’t found a great overview anywhere, so I’ve put together a presentation for tonight’s Toronto iPhone Developer Meetup.

Here are the slides and the source code for the example game I’ll be using in the presentation. I’ve included two versions of the slides, a short version that I’ll be using tonight, and a longer version that covers collision detection and using the accelerometer. The source code includes everything described in the longer version.

7 comments on iPhone and Box2D
  1. Units in Box2D ● Metal Fish Eggs ● zinc Roe Design Says:

    [...] were some good questions during my presentation last night and via email this morning about units in [...]

  2. Streaming Colour Studios » Blog Archive » Meet-Up Thoughts and Dapple Update Says:

    [...] iPhone + Box2D (blog.zincroe.com) – Luke Lutman from zinc Roe Design gave a presentation on using the open source Box2D physics engine with iPhone. He has posted his short presentation slides (that we saw) as well as a longer presentation and an example source code project. [...]

  3. Doug Says:

    Nice slides! I used Box2D for Jiggle Balls now in the App Store. There is no way I could have done it without the great work of Erin Catto (Box2D) and Simon Oliver (Rolondo). Opening this up to the community has been a great thing. There are many games using it in the App Store.

  4. Paul Says:

    Thank’s a million for this. Great timesaver!

  5. One-Hot Gaming » Blog Archive » Things to Expect Says:

    [...] We’re both pretty new when it comes to Cocoa and Objective-C, though. Luckily Objective-C doesn’t have much we haven’t run into before, and all-in-all the Apple Developer documents are pretty decent. There’s also some great people out there who share the tricky things they’ve figured out with the community. Like these guys. [...]

  6. Shane Says:

    How would you add a debug layer on this setup?

  7. leo Says:

    I try the game & checked the code ..
    I have some question on that ..
    when the ball touch the square a little time the Ball was stopped , but when another touch the square again , the ball which touch the square was release ..
    when is that code ??
    I would like to do something to stop & release the ball by code .. but don’t know how to do that ..

Your Comment…

You can use these tags: <a> <blockquote> <strong> <em> <strike> <code> <pre> Use <pre lang="LANGUAGE"> for syntax highlighted code blocks.