There are a few different ports of Box2D for JavaScript. Which one is the best?
-
Box2DJS – “converted from Box2DFlashAS3_1.4.3.1 in an automatic manner”
-
Box2Dflash 2.0 ported to JavaScript – “one big nasty hack that just happens to work”
-
box2dweb – “a port of Box2DFlash 2.1a to JavaScript. I developed an ActionScript 3 -to- JavaScript converter to generate the code”
-
HBehrens/box2d.js – “a JavaScript Version of Box2D 2.1a” (Added Nov 21, 2011)
-
kripken/box2d.js – “a direct port of the Box2D 2D physics engine to JavaScript, using Emscripten” (Added Sep 24, 2013)
Any ideas which version http://chrome.angrybirds.com/ uses, if any?
Here’s what I’ve found:
There’s also a similar discussion on gamedev.stackexchange.com.
I’d say that the winner is kripken/box2d.js.