DistanceJoint:getLimits

Edit

Returns the minimum and maximum distance allowed between the Colliders.

min, max = DistanceJoint:getLimits()

Arguments

None

Returns

NameTypeDescription
minnumber The minimum distance, in meters. The Colliders won't be able to get closer than this.
maxnumber The maximum distance, in meters. The Colliders won't be able to get further than this.

Notes

The limits default to the distance between the Colliders when the Joint was created.

See also