Aquesta simulació explora l'ús de petits molls rígids per a manejar col·lisions.
Pots canviar el nombre de blocs (d'1 a 3) i les seues posicions inicials. Pots canviar paràmetres com la massa, la rigidesa del moll, la longitud del ressort i l'amortiment (fricció). Es pot aplicar una força del moll amb el ratolí a qualsevol bloc.
An advantage of using small stiff springs to do collision handling is that you don't
have to
back up in time
after detecting a collision. A disadvantage is that you have to take very small time
steps, at least when objects are close enough to be capable of colliding. Small time
steps are needed because the springs are stiff and small.
Using springs for collision handling is also discussed on the page about
Multiple Simultaneous Collisions.
Also available are:
open source code,
documentation and a
simple-compiled version
which is more customizable.
This web page was first published November 2016.