DistanceJoint:getDistance

Edit

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

distance = DistanceJoint:getDistance()

Arguments

None

Returns

NameTypeDescription
distancenumber The target distance.

See also