DistanceJoint:setDistance

Sets the target distance for the DistanceJoint. The joint tries to keep the Colliders this far apart.

DistanceJoint:setDistance(distance)

Arguments

NameTypeDescription
distancenumberThe new target distance.

Returns

Nothing

See also