HingeJoint

Edit

A HingeJoint is a type of Joint that only allows colliders to rotate on a single axis.

Constructor

lovr.physics.newHingeJointCreate a new HingeJoint.

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.
HingeJoint:getAngleGet the current angle of the HingeJoint.
HingeJoint:getAxisGet the rotation axis of the HingeJoint.
HingeJoint:getFrictionGet the friction of the HingeJoint.
HingeJoint:getLimitsGet the angle limits of the HingeJoint.
HingeJoint:getMaxMotorTorqueGet the maximum amount of torque the motor can use.
HingeJoint:getMotorModeGet the motor mode of the HingeJoint.
HingeJoint:getMotorSpringGet the spring parameters of the motor target.
HingeJoint:getMotorTargetGet the target of the hinge motor.
HingeJoint:getMotorTorqueGet the current motor torque.
HingeJoint:getSpringGet the spring parameters of the HingeJoint limits.
HingeJoint:setFrictionSet the friction of the HingeJoint.
HingeJoint:setLimitsSet the angle limits of the HingeJoint.
HingeJoint:setMaxMotorTorqueSet the maximum amount of torque the motor can use.
HingeJoint:setMotorModeSet the motor mode of the HingeJoint.
HingeJoint:setMotorSpringSet the spring parameters of the motor target.
HingeJoint:setMotorTargetSet the target of the hinge motor.
HingeJoint:setSpringSet the spring parameters of the HingeJoint limits.

See also