Aquesta simulació mostra 2 boles en la pista d'una muntanya russa. Les 2 boles estan connectades per un moll.
Pot canviar la forma de la pista clicant en un botó a continuació. Pots arrossegar qualsevol bola amb el ratolí per a canviar la posició inicial. Intente canviar la gravetat, l'amortiment o rigidesa del moll.
The math behind the simulation is shown below. Also available are:
open source code,
documentation and a
simple-compiled version
which is more customizable.
 hump |
 loop-the-loop |
 circle |
 Lemniscate |
 oval |
 spiral |
Physics
This simulation is a variation of the Roller Coaster
with Spring, please see that page for more information on the physics and how the
simulation is done. The difference here is that the other end of the spring is attached
to another ball on the track, instead of being fixed.
We have 4 variables in this simulation:
- p1 = position on the track of ball 1 (measured by path length along the
track)
- v1 = velocity of ball 1
- p2 = position on the track of ball 2
- v2 = velocity of ball 2
The force equations for each ball are identical to that shown in the Roller Coaster
with Spring simulation except that the position of the "fixed end" of the spring is
replaced by the position of the other ball.
This web page was first published October 2002.