DistanceJoint:getLimits
EditReturns the minimum and maximum distance allowed between the Colliders.
min, max = DistanceJoint:getLimits()
Arguments
None
Returns
Name | Type | Description |
min | number | The minimum distance, in meters. The Colliders won't be able to get closer than this. |
max | number | 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.