BallJoint

Edit

A 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.newBallJointCreate a new BallJoint.

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