Joint
EditA Joint is a physics object that constrains the movement of two Colliders.
Constructors
lovr.physics.newWeldJoint | Create a new WeldJoint. |
lovr.physics.newBallJoint | Create a new BallJoint. |
lovr.physics.newConeJoint | Create a new ConeJoint. |
lovr.physics.newDistanceJoint | Create a new DistanceJoint. |
lovr.physics.newHingeJoint | Create a new HingeJoint. |
lovr.physics.newSliderJoint | Create a new SliderJoint. |
Methods
Joint:destroy | Destroy the Joint. |
Joint:getAnchors | Get the anchor points of the Joint. |
Joint:getColliders | Get the Colliders the Joint is attached to. |
Joint:getForce | Get the force used to satisfy the Joint's constraint. |
Joint:getPriority | Get the priority of the Joint. |
Joint:getTorque | Get the torque used to satisfy the Joint's constraint. |
Joint:getType | Get the type of the Joint. |
Joint:getUserData | Get the Lua value associated with the Joint. |
Joint:isDestroyed | Check if a Joint is destroyed. |
Joint:isEnabled | Check if the Joint is enabled. |
Joint:setEnabled | Enable or disable the Joint. |
Joint:setPriority | Set the priority of the Joint. |
Joint:setUserData | Associate a Lua value with the Joint. |