DistanceJoint:setLimits

Edit

Sets the minimum and maximum distance allowed between the Colliders.



Arguments

NameTypeDefaultDescription
minnumber0 The minimum distance, in meters. The Colliders won't be able to get closer than this.
maxnumbermin The maximum distance, in meters. The Colliders won't be able to get further than this.

Returns

Nothing

Remove the limits, setting the minimum distance to zero and the maximum distance to infinity.

Arguments

None

Returns

Nothing

Notes

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

See also