Box2D is a 2D physics engine for games
C C++ Objective-C Objective-C++ C# CMake Other
Latest commit 374664b Jun 19, 2016 @erincatto Win32 build fix


Box2D is a 2D physics engine for games.

For help with Box2D, please visit There is a forum there where you may post your questions.

Please see Building.txt to learn how to build Box2D and run the testbed.

To run the demos, set "Testbed" as your startup project and press F5. Some test bed commands are:

  • 'r' to reset the current test
  • SPACE to launch a bomb
  • arrow keys to pan
  • 'x' and 'z' to zoom in/out
  • use the mouse to click and drag objects

Please do not submit pull requests with new features. Instead, please file an issue first for discussion. For bugs, I prefer detailed bug reports over pull requests.

Erin Catto