iPhone port of Box2D Testbed now available
Box2D (the great physics engine that looks after all those seesaws, pinwheels, catapults, and bombs that the Rolandos encounter ) is perfect for all those out there working on 2D games. When I started working on Rolando there were a few things that took me a little while to integrate, as the normal testbed would not compile on the iPhone, and the renderer was incompatible.
I’ve just added a port of the Box2D testbed to the project, which should hopefully help anyone that is planning on using it on their iPhone projects – you should be able to just build and go. Its got an OpenGLES renderer, and allows you to use the touchscreen and accelerometer to interact with the environment. Here’s some instructions on how to interact with it:
- On the first screen, choose the test project that you would like to run.
- Drag an object around the environment using your finger, or just drag on an empty part of the screen to pan around.
- Tilt the iPhone to affect gravity.
- Double tap to return to the projects list
I hope this of use to any budding iPhone developers out there!
You can download the Box2D engine (including the iPhone testBed) from here.
(note) For some reason the embedded video sometimes plays back at enormous speeds :/
Comments