HingeJoint:getLimits

Edit

Returns the angle limits of the HingeJoint. The "zero" angle is determined by the relative position of the colliders at the time the joint was created.

min, max = HingeJoint:getLimits()

Arguments

None

Returns

NameTypeDescription
minnumber The minimum angle, in radians. Always between -π and 0.
maxnumber The maximum angle, in radians. Always between 0 and π.

Notes

The default limits are -π and π.

See also