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

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

See also