Verlet integrator physics engine in JavaScript

Channel:
Subscribers:
1,280
Published on ● Video Link: https://www.youtube.com/watch?v=rZusECyH9fY



Duration: 6:02
1,615 views
46


I made a simple physics engine in JavaScript using a verlet integrator. I might explain how that works later, but for now I am demonstrating the first version of the engine.
It can run smoothly with 3000 balls, and uses separate threads for rendering and physics.

Play around with it and view the source code:
https://codemaker4.github.io/ropeball/
https://github.com/codemaker4/ropeball
It works fine on a 1080P monitor, but because the amount and size of the balls is fixed, having a smaller monitor can mean that there are too many balls to fit. Again, feel free to modify the code for yourself by downloading the Github repo.

Steve Moulds video: (I swear it is a coincidence he also had 3000 balls)
https://youtu.be/xuL2yT-B2TM

More about Verlet Integration:
https://en.wikipedia.org/wiki/Verlet_integration