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
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. |
HingeJoint:getAngle | Get the current angle of the HingeJoint. |
HingeJoint:getAxis | Get the rotation axis of the HingeJoint. |
HingeJoint:getFriction | Get the friction of the HingeJoint. |
HingeJoint:getLimits | Get the angle limits of the HingeJoint. |
HingeJoint:getMaxMotorTorque | Get the maximum amount of torque the motor can use. |
HingeJoint:getMotorMode | Get the motor mode of the HingeJoint. |
HingeJoint:getMotorSpring | Get the spring parameters of the motor target. |
HingeJoint:getMotorTarget | Get the target of the hinge motor. |
HingeJoint:getMotorTorque | Get the current motor torque. |
HingeJoint:getSpring | Get the spring parameters of the HingeJoint limits. |
HingeJoint:setFriction | Set the friction of the HingeJoint. |
HingeJoint:setLimits | Set the angle limits of the HingeJoint. |
HingeJoint:setMaxMotorTorque | Set the maximum amount of torque the motor can use. |
HingeJoint:setMotorMode | Set the motor mode of the HingeJoint. |
HingeJoint:setMotorSpring | Set the spring parameters of the motor target. |
HingeJoint:setMotorTarget | Set the target of the hinge motor. |
HingeJoint:setSpring | Set the spring parameters of the HingeJoint limits. |