SliderJoint:setLimits

Edit

Sets 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

NameTypeDescription
minnumber The minimum position, in meters. Must be less than or equal to zero.
maxnumber 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.

See also