5 ms·
Why is this upvoted so much? In what way is it better than any of the existing JS physics engines? Matter.js: http://brm.io/matter-js/ http://brm.io/matter-js/
by olegkikin 9y ago
Why is this upvoted so much? In what way is it better than any of the existing JS physics engines?
Matter.js: http://brm.io/matter-js/ http://brm.io/matter-js/
Cannon.js: http://www.cannonjs.org/ http://www.cannonjs.org/
PhysicsJS: http://wellcaffeinated.net/PhysicsJS/ http://wellcaffeinated.net/PhysicsJS/
Box2DJS: http://box2d-js.sourceforge.net/ http://box2d-js.sourceforge.net/ (Emscripten-compiled from flash)
p2: https://github.com/schteppe/p2.js https://github.com/schteppe/p2.js
Ammo.js: https://github.com/kripken/ammo.js/ https://github.com/kripken/ammo.js/ (Emscripten-compiled from C++)
JPE: https://github.com/colorhook/JPE https://github.com/colorhook/JPE
Oimo.js: https://github.com/lo-th/Oimo.js/ https://github.com/lo-th/Oimo.js/
Planck.js: https://github.com/shakiba/planck.js https://github.com/shakiba/planck.js
- tachyonbeam 9y agoBecause it does something cool and people find it interesting. Doesn't take away from existing systems.
- xchip 9y agoAll those are great physics engines. Mine is just very simple and easy to understand, hopefully it inspires other people to get into the world of simulations.
- looki 9y agoAlso thanks for the reference to Erin Catto's talk, need to check it out. Maybe physics engines aren't magic after all.
- xchip 9y agoIn fact that was one of the reasons that compelled me do write my own, because physics engines looked to me like voodoo magic. Thanks for understanding my obsession with learning :)
- xchip 9y agoIn fact that was one of the reasons that compelled me do write my own, because physics engines looked to me like voodoo magic. Thanks for understanding my obsession with learning :)
- Aeolun 9y agoIt doesn't take into account surface friction? Those boxes seem covered in soap to me.
- deleted 9y ago[deleted]
- opmac 9y agoI'm with you, and I don't even find this particular example that interesting or accurate. You just re-run the same simulation over and over without any control of the initial or boundary conditions.
- ivan_ah 9y agoWhat's special about this simulation is that the entire code fits on one page, including linear algebra library: https://github.com/aguaviva/Physics/blob/master/RigidBodyChainVSstack.html https://github.com/aguaviva/Physics/blob/master/RigidBodyCha... I've been trying to understand js physics simulation for many years, and this is the first demo that I find understandable. Amazing work!
- xchip 9y agoFantastic, in fact I wrote because I had been trying to understand physics engines four a long time and it was super hard to follow the papers. I wrote it four learning my self and published it to help others not go through my frustration :)
- deleted 9y ago[deleted]
- throwaway91111 9y agoThis is a Show HN; you don't need to be entirely novel to have things to show. Personally i found the linked content to be much more approachable than your links, though they are undoubtedly better physics engines.
- ivan_ah 9y agoTo add to the list, the best physics engine I've seen (not for js games, for actual physics simulations to teach people physics) is this one: https://www.myphysicslab.com/ https://www.myphysicslab.com/ PheT also has lots of good stuff: https://phet.colorado.edu/ https://phet.colorado.edu/
- tapirl 9y agoI used some physics engines. I feel the simulation quality of the one made by op is quit good, even better than some complete engines.
- xchip 9y agoThanks! :)