BallJoint
EditA BallJoint is a type of Joint
that acts like a ball and socket between two colliders. It allows the colliders to rotate freely around an anchor point, but does not allow the colliders' distance from the anchor point to change.
Constructor
lovr.physics.newBallJoint | Create a new BallJoint. |
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. |