DistanceJoint:setDistance
EditSets the target distance for the DistanceJoint. The joint tries to keep the Colliders this far apart.
DistanceJoint:setDistance(distance)
Arguments
Name | Type | Description |
distance | number | The new target distance. |
Returns
Nothing
See also
DistanceJoint:getDistance
DistanceJoint