Joint

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

Constructors

lovr.physics.newBallJointCreate a new BallJoint.
lovr.physics.newDistanceJointCreate a new DistanceJoint.
lovr.physics.newHingeJointCreate a new HingeJoint.
lovr.physics.newSliderJointCreate a new SliderJoint.

Methods

Joint:destroyDestroy the Joint.
Joint:getCollidersGet the Colliders the Joint is attached to.
Joint:getUserDataGet the Joint's user data.
Joint:setUserDataSet the Joint's user data.
Joint:getTypeGet the type of the Joint.

See also