OptionalanchorThe attachment point in world space (§28's anchor), used for both
bodies. Omitted means each body's own origin; overridden per body by
JointOptions.anchorA / JointOptions.anchorB.
OptionalanchorWorld-space attachment point on bodyA, overriding anchor.
OptionalanchorWorld-space attachment point on bodyB, overriding anchor.
OptionalaxisHinge axis in world space. Required in a "3d" world; a "2d" world
defaults it to +Z, its only rotational freedom (§21).
First constrained body (§28's bodyA). Must differ from bodyB.
Second constrained body.
OptionalbreakBreak force in newtons (§28), or omitted for a joint that never breaks.
OptionalbreakBreak torque in newton-metres (§28). See JointOptions.breakForce.
OptionalcollisionWhether the two bodies still collide with each other (§28 "collision
enable/disable"). false by default.
OptionallimitsAngular travel in radians (§28 "limits"), or free rotation when omitted.
OptionalmotorVelocity motor about the axis (§28 "motors"), or none when omitted.
How a HingeJoint is constructed (§28's example, field for field).