Haven't looked too much at the API, but right off the bat I would suggest a more compelling suite of demos, with collision, stacking, etc...I may just be missing the links.<p>You're definitely targeting a gaping niche IMO though (same one I'm trying to fill through a side project). Using Box2D in JavaScript feels like programming in assembly sometimes.
You really need to submit a single newton.js to GitHub so people can try it out more easily. (how I did it for my library[1]. Other than that, I've been using Chipmunk-JS lately and struggling a bit here and there so I very much look forward to using Newton.<p>[1]: <a href="https://github.com/davidgomes/pentagine/blob/master/tools/merge.rb" rel="nofollow">https://github.com/davidgomes/pentagine/blob/master/tools/me...</a><p>EDIT: Already filled in a pull request, the code looks quite good.
I wish you all the best with your ambitious project ^w^<p>You should seriously consider employing techniques such as LLJS[1] to avoid thrashing the GC.<p>At the very least use typed arrays à la glMatrix[2] rather than a Vector prototype.<p>Typed arrays have the added benefit of interoperability with WebGL and Canvas2D via Function::apply.<p>---<p>[1] <a href="http://mbebenita.github.io/LLJS" rel="nofollow">http://mbebenita.github.io/LLJS</a><p>[2] <a href="http://glmatrix.net" rel="nofollow">http://glmatrix.net</a>
<i>"Unfortunately, these ports combine the clarity and conciseness of C++ with the speed of JavaScript."</i><p>This is exactly how I felt using the Box2D port for our swarm project--itself a port of an ActionScript port of a C++ library.
I wonder how it compares to p2.js[1], another recent 2D physics engine, but created by the same person who created the 3D physics engine Cannon.js[2]<p>[1] <a href="https://github.com/schteppe/p2.js" rel="nofollow">https://github.com/schteppe/p2.js</a><p>[2] <a href="https://github.com/schteppe/cannon.js" rel="nofollow">https://github.com/schteppe/cannon.js</a>
This would be perfect for my idea of a tool for teaching programming to kids: a small game framework that they can program with a DSL, then teach them to hack the DSL....