This is little bit simpler than a full-blown physics engine. https://subprotocol.com//system/verlet-hello-world.html https://github.com/subprotocol/verlet-js    
    • Like
    4