Hidden Testbed Features

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!
I was already searching for these commamds.Thanx for sharing these ones. 😀



_________________
http://www.plagiarismsoftware.net/
http://www.wiu.edu/users/mfbhl/wiu/plagiarism.htm
http://definitions.uslegal.com/p/plagiarism/
The 'x' key zooms in for me, not the 'a' key.
Hey guys. I have got a small problem here. My panning is completely inverted. When i move it right it moves left and vice versa. I have tried to reset the option and tried almost everything. Someone please help me out here.







-----------------------
CORBIN GRAVELY
adult home care
ohthepain wrote:The 'x' key zooms in for me, not the 'a' key.


Thanks for sharing these. These will be really useful and can save a lot of time. Will be keeping an eye on this thread. Just wondering, x is the zoom key for me as well, does this mean that these commands vary for different users? Perhaps there is an option to customize these commands? Thanks again though.

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