SliderJoint:getLimits
EditReturns the position limits of the SliderJoint. The "zero" position is determined by the relative position of the colliders at the time the joint was created, and positive positions are further apart along the slider axis.
min, max = SliderJoint:getLimits()
Arguments
None
Returns
Name | Type | Description |
min | number | The minimum position, in meters. Must be less than or equal to zero. |
max | number | The maximum position, in meters. Must be greater than or equal to zero. |
Notes
The default limits are -math.huge and math.huge (no limits).