DistanceJoint:setDistance

Edit

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

DistanceJoint:setDistance(distance)

Arguments

NameTypeDescription
distancenumber The new target distance.

Returns

Nothing

See also