Some test bed commands are:
- 'r' to reset the current test
- SPACE to launch a bomb
- arrow keys to pan
- 'a' and 'z' to zoom in/out
- use the mouse to click and drag objects
I found 'space', 'r' and the mouse dragging myself, panning and zooming are cool though 😀
I better watch this thread for other eastereggs, because I'm going to re-use the Box2D Testbed in 3D 😉
Erwin
The panning seems backwards. Hitting right should move the "camera" right. Oh, and don't forget the Home key to reset the view.
I touched up my copy of the testbed's Main.cpp to add right mouse button dragging to move the camera and mouse wheel zoom control. I find it pretty helpful, so if anyone wants to use this, go right ahead, the altered file is attached below (from most recent SVN). For the mouse wheel to be enabled you need to modify freeglut->GL->glut.h so it includes freeglut.h instead of freeglut_std.h (the mouse wheel handler is an extension of glut). Also, it appears that mouse wheel support is spotty under X and there's no workaround at the moment, so if you're running that you can try, but no guarantees. Shouldn't break the compile, but the wheel just might not do anything.
ewjordan: this is great! Thanks!
The 'x' key zooms in for me, not the 'a' key.