HingeJoint:getLimits
EditReturns 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
Name | Type | Description |
min | number | The minimum angle, in radians. Always between -π and 0. |
max | number | The maximum angle, in radians. Always between 0 and π. |
Notes
The default limits are -π and π.