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

BallJoint:getAnchorsGet the anchor points of the BallJoint.
BallJoint:getResponseTimeGet the response time of the joint.
BallJoint:getTightnessGet the joint tightness.
BallJoint:setAnchorSet the anchor point of the BallJoint.
BallJoint:setResponseTimeSet the response time of the joint.
BallJoint:setTightnessSet the joint tightness.

See also