whether angle limits are enabled
inverse of initial relative orientation, for calculating current angle
maximum angle limit (radians)
minimum angle limit (radians)
spring settings for soft limits
hinge axis on body 1 in local space (normalized)
hinge axis on body 2 in local space (normalized)
normal axis perpendicular to hinge on body 1 (for angle reference)
normal axis perpendicular to hinge on body 2 (for angle reference)
attachment point on body 1 in local space
attachment point on body 2 in local space
maximum friction torque when motor is off
motor constraint (1 DOF)
motor settings (spring + torque limits)
motor state
point constraint for translation (3 DOF)
hinge rotation constraint (2 DOF) - keeps axes aligned
angle limit constraint (1 DOF)
target angle (radians) for position mode
target angular velocity (rad/s) for velocity mode
current hinge angle (radians) - cached during setup
world space hinge axis (cached during setup)
Hinge constraint removes 5 DOF (3 translation + 2 rotation). Allows rotation only around the hinge axis, like a door hinge or wheel.