HingeJoint

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

HingeJoint:getLimitsGet the HingeJoint's angle limits.
HingeJoint:setLimitsSet the HingeJoint's angle limits.
HingeJoint:setAnchorSet the anchor point of the HingeJoint.
HingeJoint:getAnchorsGet the anchor points of the HingeJoint.
HingeJoint:getAngleGet the angle of the HingeJoint.
HingeJoint:getLowerLimitGet the HingeJoint's lower angle limit.
HingeJoint:setLowerLimitSet the HingeJoint's lower angle limit.
HingeJoint:getUpperLimitGet the HingeJoint's upper angle limit.
HingeJoint:setUpperLimitSet the HingeJoint's upper angle limit.
HingeJoint:getAxisGet the HingeJoint's axis.
HingeJoint:setAxisSet the HingeJoint's axis.

See also