Joint

Edit

A Joint is a physics object that constrains the movement of two Colliders.

Constructors

lovr.physics.newWeldJointCreate a new WeldJoint.
lovr.physics.newBallJointCreate a new BallJoint.
lovr.physics.newConeJointCreate a new ConeJoint.
lovr.physics.newDistanceJointCreate a new DistanceJoint.
lovr.physics.newHingeJointCreate a new HingeJoint.
lovr.physics.newSliderJointCreate a new SliderJoint.

Methods

Joint:destroyDestroy the Joint.
Joint:getAnchorsGet the anchor points of the Joint.
Joint:getCollidersGet the Colliders the Joint is attached to.
Joint:getForceGet the force used to satisfy the Joint's constraint.
Joint:getPriorityGet the priority of the Joint.
Joint:getTorqueGet the torque used to satisfy the Joint's constraint.
Joint:getTypeGet the type of the Joint.
Joint:getUserDataGet the Lua value associated with the Joint.
Joint:isDestroyedCheck if a Joint is destroyed.
Joint:isEnabledCheck if the Joint is enabled.
Joint:setEnabledEnable or disable the Joint.
Joint:setPrioritySet the priority of the Joint.
Joint:setUserDataAssociate a Lua value with the Joint.

See also