kripken / box2d.js

Port of Box2D to JavaScript using Emscripten
1.33k stars 196 forks source link

Important additions to allow access to more objects and improve build system #4

Closed insidewhy closed 11 years ago

insidewhy commented 11 years ago

Hi,

I've been using your box2d port quite extensively and uncovered a number of drawbacks, one of the most major ones being an inability to access contact events.

By adding more object constructors I was able to open up more source code. I added some documentation to the README to show how to use collisions under box2d.js as it was quite tricky to work out.

Using the new environment variable setting support in emscripten I was also able to clean up the build system so it will work "out of the box" on more users machines.

I also include emscripten as a git submodule, this seems important so that the version of emscripten that was used to build the internal "box2d.js" is tagged and known for every release.

Cheers, James

kripken commented 11 years ago

Nice, thanks!