Joint

Edit

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:getTypeGet the type of the Joint.
Joint:getUserDataGet the Joint's user data.
Joint:isEnabledCheck if the Joint is enabled.
Joint:setEnabledEnable or disable the Joint.
Joint:setUserDataSet the Joint's user data.

See also