Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6dfa0b19ab
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (11 sloc) 0.871 kb



Example code to give you an idea of the API:

box2d.js is a direct port of the Box2D 2D physics engine to JavaScript, using Emscripten. The source code is translated directly to JavaScript, without human rewriting, so functionality should be identical to the original Box2D.

box2d.js is zlib licensed, just like Box2D.

Discussion takes place on IRC at #emscripten on Mozilla's server (


The automatically generated bindings have not been tested much beyond making sure the WebGL demo works properly.

For general notes on using the bindings, see the ammo.js project (a port of Bullet to JavaScript using Emscripten), many of the details of wrapping classes and so forth are identical.

Jump to Line
Something went wrong with that request. Please try again.