SliderJoint:setLimits
EditSets 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 distances are further apart on the slider axis.
Arguments
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. |
Returns
Nothing
Disable the limits, setting them to -math.huge and math.huge.
Arguments
None
Returns
Nothing
Notes
The default limits are -math.huge and math.huge.