DistanceJoint

A DistanceJoint is a type of Joint that tries to keep two colliders a fixed distance apart. The distance is determined by the initial distance between the anchor points. The joint allows for rotation on the anchor points.

Constructor

lovr.physics.newDistanceJointCreate a new DistanceJoint.

Methods

DistanceJoint:getDistanceGet the target distance of the DistanceJoint.
DistanceJoint:setDistanceSet the target distance of the DistanceJoint.
DistanceJoint:getAnchorsGet the anchor points of the DistanceJoint.
DistanceJoint:setAnchorsSet the anchor points of the DistanceJoint.

See also