HingeConstraint Class
Hinge constraint. Think of it as a door hinge. It tries to keep the door in the correct place and with the correct orientation.
Constructor
Item Index
Methods
disable
()
Disables all equations in the constraint.
disableMotor
()
enable
()
Enables all equations in the constraint.
enableMotor
()
setMotorMaxForce
(
-
maxForce
Parameters:
-
maxForce
Number
setMotorSpeed
(
-
speed
Parameters:
-
speed
Number
update
()
Update all the equations with data.
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