DistanceJoint:getDistance

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

distance = DistanceJoint:getDistance()

Arguments

None

Returns

NameTypeDescription
distancenumberThe target distance.

See also