Main Page

From Box2D Wiki

Jump to: navigation, search


Box2d Wiki

Box2d is a feature rich 2d rigid body physics engine, written in C++ by Erin Catto. It has been used in many games, including Crayon Physics Deluxe, winner of the 2008 Independant Game Festival Grand Prize. Many ports are available for Flash, Java, C#, Python, JavaScript, and fixed point embedded devices.

Further reading

Quick start Guide

  1. Download Box2d
  2. Build the library and testbed
  3. Play around with the testbed examples
  4. Get familiar the features of the engine
  5. Check out some sample code and learn how to complete common tasks in Box2d
  6. Make an awesome game, and show it off!
  7. Need help? If you can't find answers here or in the General FAQ, visit the Box2d forum
  8. Box2DFlash Video Tutorial

Typical Engine Usage

  • Set up your Box2d world
  • Create some shapes
  • Add them to bodies
  • Connect your bodies with joints
  • Step your world forward within a simulation loop
  • Draw your results (note: Box2d does not handle drawing, you must hook it up to your own drawing routines)


Personal tools