Pocket Physics DS

Since this is my first post here, I'd first like to thank Erin Catto and everyone else involved for this great library!
I made a small physics toy for the Nintendo DS, called Pocket Physics. It's heavily inspired by Crayon Physics through which I got to know Box2D in the first place.
If you want to play around with it but don't have a DS with the proper equipment, you can try an emulator like no$gba.

You can get it from here: http://tobw.net/index.php?cat_id=3&project=Pocket+Physics

Also, my port of Box2D to the DS is available from here: http://blog.dev-scene.com/0xtob/2007/12/23/box2d-for-the-ds/

Cheers!
Tob
Awesome! I'll post a link.
Hi all,

I tried the DS Box2D version, but it crashed in my application when adding a static object.

Debugging (and Debugging on ds is not something you really want to do), I found out that 'm_pairBufferCount' in the b2PairManager was set to a huge number at start, so commit was crashing.

I set it to 0 in the constructor, and now, this is ok ( but it crashed in the update... More debugging stuff for me ).

I'm still wondering why no one else failed on this one ?
Is it because I'm using a emulator, and the intial value is garbage, although on real DS, it would have been 0 ?
And why no body found this out on any other version ???

Is it possible it is a real bug from box2D ?

Emmanuel, going to debug the update now...
Strange. I didn't have this problem either on hardware or in no$gba.
I've been playing with Pocket Physics for a bit of time now, and I really enjoy it, a few questions though:

1. It seems to freeze on occasion, when trying to create new objects, with the sketching sound looping, but nothing else working, forces a hard reboot. The drawing is the only common ground, as far as I can tell, as it's independent of the number of objects in the world. Has anyone else reported any similar problems?

2. It's a lot of fun, but the screen is small, preventing anything beyond very simple worlds, is there any way to implement zooming/scrolling, in order to open up a possibly larger play surface, without running into problems such as resolution limits on the touchscreen?

3. I lack complete familiarity with the Box2D API, having so far only worked with rectangles, but would it be possible to have a line tool that did not close itself, or if it did, created the closing vertexes along the same line, so that things like "ropes" don't get that parallel line right next to them, taking up larger amounts of space?

edit: Just found this thread http://forum.gbadev.org/viewtopic.php?p=147572, which answered 2 & 3
Hey! For decomposing drawn polygons into convex ones I'm using ewjordan's convex decomposition code that is still unstable and causes the program to lock up from time to time. ewjordan has released an updated version recently which I will be using in the next version. I just answered you other questions in the gbadev forum thread 🙂
I wanted to point out the fantastic new Flash Player for Pocket Physics by émeric which you can try out at Lucas van Dijk's excellent Pocket Physics sharing site: http://return1.net/site/pp

It serves as an online preview for Pocket Physics files and it works surprisingly well! Of course it's not 100% accurate since ActionScript-Box2D uses floating point math, but you get the idea most of the time.

Notable sketches:
Chain Reaction
The Almost Incredible Machine
Kill the Cat (by me 🙂

Who said DS games cannot be Web 2.0? 🙂
Sweet!

Original thread: https://box2d.org/forum/viewtopic.php?t=215