Box2D for the DS

As you know, physics is the new 3D. So why not just ditch the 3D for the good old 2D? 2D was much cooler anyways, and a lot of games that were fun in 2D became quite annoying in 3D.

This is where Box2D comes in. It’s a very easy to use 2D physics library with a growing set of features. Box2D got a lot of attention from the game Crayon Physics that showed the potential of the library. Unfortunately, it is not perfect for the DS, because it uses floating point math, which the DS’s CPUs don’t support. So, I decided to create a DS port with fixed point math. Check it out, it’s really easy and a lot of fun!

box2d-1.4.3-ds2.tgz

Update:
The fixed point and Nintendo DS patches are now part of the official Box2D SVN! If you want to use Box2D on the DS, just check out the latest version from SVN. Also, check out my DS physics toy Pocket Physics.

5 Responses to “Box2D for the DS”

  1. Ibrahim Says:

    Does this mean sometime we might see a port of Crayon Physics for the DS? That would be amazing! Ever since I saw it the first time I immediately thought how awesome a DS port would be, and I’m sure a lot of other people did too.

  2. thoduv Says:

    I have been looking for a 2D collision/physics library for long. And now, you make me discover one, and you even ported it to DS. :D
    Thanks a lot 0xtob !

  3. asdf Says:

    YO! There IS a crayon physics port for the DS!!! just google POCKET PHYSICS and click on he first link!!! w00t!!!!!

  4. Jay Says:

    im quite new at DS coding and im stuck on how to use this library, please help!

  5. 0xtob Says:

    Ibrahim: Might be, but I’m not planning to implement levels in Pocket Physics, so someone interested in having Crayon Physics DS should do that himself (it’s going to be open source).

    Jay: It’d probably be best if you mailed me what specific problem you have and I’ll be glad to help.

Leave a Reply


Bad Behavior has blocked 26 access attempts in the last 7 days.