Comment on Newton - Javascript Physics LibraryComments−DanielRibeiro12yI 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][1] https://github.com/schteppe/p2.js[2] https://github.com/schteppe/cannon.js−hunterloftis12yThanks for the link, I hadn't seen p2.js.Here are a few points for comparison:- p2.js is significantly more complete than newton- p2.js uses a rigid body simulation closer in principle to box2d, while newton uses a particle-and-constraint based verlet integration- newton provides a game loop with separate render/simulate time tracking (something I feel is missing from existing libs)
Comments
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]
[1] https://github.com/schteppe/p2.js
[2] https://github.com/schteppe/cannon.js
Thanks for the link, I hadn't seen p2.js.
Here are a few points for comparison:
- p2.js is significantly more complete than newton
- p2.js uses a rigid body simulation closer in principle to box2d, while newton uses a particle-and-constraint based verlet integration
- newton provides a game loop with separate render/simulate time tracking (something I feel is missing from existing libs)