DistanceJoint

Edit

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:getAnchorsGet the anchor points of the DistanceJoint.
DistanceJoint:getDistanceGet the target distance of the DistanceJoint.
DistanceJoint:getResponseTimeGet the response time of the joint.
DistanceJoint:getTightnessGet the joint tightness.
DistanceJoint:setAnchorsSet the anchor points of the DistanceJoint.
DistanceJoint:setDistanceSet the target distance of the DistanceJoint.
DistanceJoint:setResponseTimeSet the response time of the joint.
DistanceJoint:setTightnessSet the joint tightness.

See also