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.newDistanceJoint | Create a new DistanceJoint. |
Methods
DistanceJoint:getAnchors | Get the anchor points of the DistanceJoint. |
DistanceJoint:getDistance | Get the target distance of the DistanceJoint. |
DistanceJoint:getResponseTime | Get the response time of the joint. |
DistanceJoint:getTightness | Get the joint tightness. |
DistanceJoint:setAnchors | Set the anchor points of the DistanceJoint. |
DistanceJoint:setDistance | Set the target distance of the DistanceJoint. |
DistanceJoint:setResponseTime | Set the response time of the joint. |
DistanceJoint:setTightness | Set the joint tightness. |
See also
Collider
Joint
lovr.physics