HingeJoint
EditA HingeJoint is a type of Joint
that only allows colliders to rotate on a single axis.
Constructor
lovr.physics.newHingeJoint | Create a new HingeJoint. |
Methods
HingeJoint:getAnchors | Get the anchor points of the HingeJoint. |
HingeJoint:getAngle | Get the angle of the HingeJoint. |
HingeJoint:getAxis | Get the HingeJoint's axis. |
HingeJoint:getLimits | Get the HingeJoint's angle limits. |
HingeJoint:getLowerLimit | Get the HingeJoint's lower angle limit. |
HingeJoint:getUpperLimit | Get the HingeJoint's upper angle limit. |
HingeJoint:setAnchor | Set the anchor point of the HingeJoint. |
HingeJoint:setAxis | Set the HingeJoint's axis. |
HingeJoint:setLimits | Set the HingeJoint's angle limits. |
HingeJoint:setLowerLimit | Set the HingeJoint's lower angle limit. |
HingeJoint:setUpperLimit | Set the HingeJoint's upper angle limit. |