DistanceConstraint Class
Constrains two bodies to be at a constant distance from each other.
Constructor
DistanceConstraint
(
-
bodyA
-
bodyB
-
distance
-
maxForce
)
Parameters:
-
bodyA
Body
-
bodyB
Body
-
distance
Number
-
maxForce
Number
Properties
collideConnected
Boolean
Set to true if you want the bodies to collide when they are connected.
equations
Array
Equations to be solved in this constraint