SliderJoint:getLimits

Edit

Returns 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

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.

Notes

The default limits are -math.huge and math.huge (no limits).

See also