Aquesta simulació mostra 2 masses connectades per un moll i estan lliures per a moure's en 2 dimensions.
Pot canviar paràmetres en la simulació, com la gravetat, la massa, la rigidesa del ressort i la fricció (amortiment). Pot arrossegar qualsevol massa amb el ratolí per a canviar la posició inicial.
The math and physics used in this simulation are similar to the
2-D Spring and
Double 2-D Spring simulations. However the masses
can also collide with the walls; the collision handling is similar to the
Colliding Blocks simulation. The only novel bit of
math occurs when a mass is pinned against a wall: in that case we add up the net forces
on the mass and set the acceleration to zero if necessary.
Also available are:
open source code,
documentation and a
simple-compiled version
which is more customizable.
This web page was first published September 2001.