PrismaticConstraint Class
Constraint that only allows bodies to move along a line, relative to each other. See this tutorial.
Constructor
PrismaticConstraint
(
-
bodyA
-
bodyB
-
options
Parameters:
-
bodyA
Body -
bodyB
Body -
options
Object-
maxForce
NumberMax force to be applied by the constraint
-
localAnchorA
ArrayBody A's anchor point, defined in its own local frame.
-
localAnchorB
ArrayBody B's anchor point, defined in its own local frame.
-
localAxisA
ArrayAn axis, defined in body A frame, that body B's anchor point may slide along.
-
Methods
update
()
Update the constraint equations. Should be done if any of the bodies changed position, before solving.