Esta simulación basada en la física muestra un cuerpo rígido unido a una ruta curva de "montaña rusa". Se utiliza el Motor de Física de Cuerpo Rígido 2D.
Haga clic con el ratón para aplicar una fuerza de muelle al bloque. Varias formas de ruta están disponibles. Intenta cambiar la gravedad o la amortiguación.
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.