News for hackers. Stuff that matters.
Re:Show HN: A 2D Physics Simulator in JavaScript by olegkikin on Thursday July 27, 2017 @03:22PM (#14868505)
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/

Cannon.js: http://www.cannonjs.org/

PhysicsJS: http://wellcaffeinated.net/PhysicsJS/

Box2DJS: http://box2d-js.sourceforge.net/ (Emscripten-compiled from flash)

p2: https://github.com/schteppe/p2.js

Ammo.js: https://github.com/kripken/ammo.js/ (Emscripten-compiled from C++)

JPE: https://github.com/colorhook/JPE

Oimo.js: https://github.com/lo-th/Oimo.js/

Planck.js: https://github.com/shakiba/planck.js

Re:Show HN: A 2D Physics Simulator in JavaScript by xchip on Thursday July 27, 2017 @04:02PM (#14868902)
All 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.
Re:Show HN: A 2D Physics Simulator in JavaScript by looki on Thursday July 27, 2017 @04:35PM (#14869201)
Also thanks for the reference to Erin Catto's talk, need to check it out. Maybe physics engines aren't magic after all.
Re:Show HN: A 2D Physics Simulator in JavaScript by xchip on Friday July 28, 2017 @03:51PM (#14876991)
In 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 :)
Re:Show HN: A 2D Physics Simulator in JavaScript by Aeolun on Friday July 28, 2017 @02:10AM (#14872338)
It doesn't take into account surface friction? Those boxes seem covered in soap to me.
Re:Show HN: A 2D Physics Simulator in JavaScript by throwaway91111 on Thursday July 27, 2017 @07:48PM (#14870806)
This 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.

Re:Show HN: A 2D Physics Simulator in JavaScript by tachyonbeam on Thursday July 27, 2017 @04:00PM (#14868888)
Because it does something cool and people find it interesting. Doesn't take away from existing systems.
Re:Show HN: A 2D Physics Simulator in JavaScript by ivan_ah on Thursday July 27, 2017 @11:54PM (#14871839)
To 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/

PheT also has lots of good stuff: https://phet.colorado.edu/

Re:Show HN: A 2D Physics Simulator in JavaScript by opmac on Thursday July 27, 2017 @05:22PM (#14869707)
I'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.
Re:Show HN: A 2D Physics Simulator in JavaScript by ivan_ah on Friday July 28, 2017 @12:10AM (#14871900)
What'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/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!

Re:Show HN: A 2D Physics Simulator in JavaScript by xchip on Friday July 28, 2017 @03:57PM (#14877041)
Fantastic, 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 :)
Re:Show HN: A 2D Physics Simulator in JavaScript by tapirl on Friday July 28, 2017 @09:30AM (#14874090)
I used some physics engines. I feel the simulation quality of the one made by op is quit good, even better than some complete engines.
Re:Show HN: A 2D Physics Simulator in JavaScript by xchip on Saturday July 29, 2017 @10:01AM (#14881254)
Thanks! :)