Aquesta simulació basada en la física mostra un cos rígid unit a una ruta corba de "muntanya russa". S'utilitza el
Motor de Física de Cos Rígid 2D.
Clique amb el ratolí per a aplicar una força de moll al bloc. Diverses formes de ruta estan disponibles. Intenta canviar la gravetat o l'amortiment.
This simulation uses the same math shown on the
roller coaster page to make a numerical table of the path data. A special kind of joint connector called
PathJoint is used to connect the rigid body to the path.
The "circle" path has a PathEndPoint
which stops the movement of the PathJoint from going past the top of the circle. The PathEndPoint is not required, it is added as a demonstration.
The "hump" path has two PathEndPoints, and also defines a GenericMemo
which disconnects the block when it moves past a certain spot on the path.
Also available are:
open source code,
documentation and a simple-compiled version which is more customizable.
This web page was first published November 2016.