HingeJoint:setLimits

Edit

Sets 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.



Arguments

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

Returns

Nothing

Disable the limits, setting them to -π and π.

Arguments

None

Returns

Nothing

Notes

The default limits are -π and π.

See also