src/constraints/HingeConstraint.js:10
Hinge constraint. Think of it as a door hinge. It tries to keep the door in the correct place and with the correct orientation.
HingeConstraintbodyA
bodyB
[options]
Defined in
src/constraints/HingeConstraint.js:10
disableInherited from
Constraint:
src/constraints/Constraint.js:80
Disables all equations in the constraint.
enableInherited from
Constraint:
src/constraints/Constraint.js:69
Enables all equations in the constraint.
setMotorMaxForcemaxForce
Defined in
src/constraints/HingeConstraint.js:95
maxForce
Number
updateInherited from
Constraint:
src/constraints/Constraint.js:61
Update all the equations with data.
axisA
Defined in
src/constraints/HingeConstraint.js:33
Rotation axis, defined locally in bodyA.
axisB
Defined in
src/constraints/HingeConstraint.js:40
Rotation axis, defined locally in bodyB.
collideConnectedInherited from
Constraint:
src/constraints/Constraint.js:44
Set to true if you want the bodies to collide when they are connected.
equationsInherited from
Constraint:
src/constraints/Constraint.js:22
Equations to be solved in this constraint
equationXInherited from
PointToPointConstraint:
src/constraints/PointToPointConstraint.js:49
equationYInherited from
PointToPointConstraint:
src/constraints/PointToPointConstraint.js:54
equationZInherited from
PointToPointConstraint:
src/constraints/PointToPointConstraint.js:59
pivotAInherited from
PointToPointConstraint:
src/constraints/PointToPointConstraint.js:37
Pivot, defined locally in bodyA.
pivotBInherited from
PointToPointConstraint:
src/constraints/PointToPointConstraint.js:43
Pivot, defined locally in bodyB.