DistanceJoint:setLimits
EditSets the minimum and maximum distance allowed between the Colliders.
Arguments
Name | Type | Default | Description |
min | number | 0 | The minimum distance, in meters. The Colliders won't be able to get closer than this. |
max | number | min | 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.