Optional options: { Optional axisA?: Vec3An axis that bodyA can rotate around, defined locally in bodyA.
Optional axisB?: Vec3An axis that bodyB can rotate around, defined locally in bodyB.
Optional collideWheter to collide the connected bodies or not.
false
Optional maxThe maximum force that should be applied to constrain the bodies.
1e6
Optional pivotA?: Vec3A point defined locally in bodyA. This defines the offset of axisA.
Optional pivotB?: Vec3A point defined locally in bodyB. This defines the offset of axisB.
Rotation axis, defined locally in bodyA.
Rotation axis, defined locally in bodyB.
Body A.
Body B.
Set to false if you don't want the bodies to collide when they are connected.
Equations to be solved in this constraint.
Pivot, defined locally in bodyA.
Pivot, defined locally in bodyB.
Static id
Hinge constraint. Think of it as a door hinge. It tries to keep the door in the correct place and with the correct orientation.