LockConstraint Class
Locks the relative position between two bodies.
Constructor
Item Index
Properties
Methods
getMaxForce
()
Number
Get the max force.
Returns:
Number:
setMaxForce
(
-
force
Set the maximum force to be applied.
Parameters:
-
force
Number
setRelaxation
(
-
relaxation
Set relaxation for this constraint.
Parameters:
-
relaxation
Number
setStiffness
(
-
stiffness
Set stiffness for this constraint.
Parameters:
-
stiffness
Number
update
()
Updates the internal constraint parameters before solve.
Properties
collideConnected
Boolean
Set to true if you want the connected bodies to collide.
Default: true
equations
Array
Equations to be solved in this constraint
localAngleB
Number
The offset angle of bodyB in bodyA's frame.
localOffsetB
Array
The offset of bodyB in bodyA's frame.