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
BallJoint:getAnchors | Get the anchor points of the BallJoint. |
BallJoint:getResponseTime | Get the response time of the joint. |
BallJoint:getTightness | Get the joint tightness. |
BallJoint:setAnchor | Set the anchor point of the BallJoint. |
BallJoint:setResponseTime | Set the response time of the joint. |
BallJoint:setTightness | Set the joint tightness. |