Emscripten Box2D demo
This demo uses JavaScript generated from the Box2D C++ source code by the
emscripten
compiler.
See
https://github.com/kripken/box2d.js
for more details.
Reset
Pause
Single step
(Keyboard: R, P, S)
Zoom
+
-
(Keyboard: X, Z)
Hold down Shift while moving the mouse to pan (Keyboard: arrow keys)
You need to click on the canvas before using the keyboard.
Test:
Dominos
Rope joint
Pulley joint
Falling shapes
Pyramid
Car (use j/k to move)
Balanced mobile
Debug draw flags:
Shapes
Joints
AABBs
Transforms
Show stats