Hacker News new | ask | show | jobs
by DanielRibeiro 4616 days ago
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

1 comments

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)