SliderJoint

Edit

A SliderJoint is a type of Joint that only allows colliders to move on a single axis.

Constructor

lovr.physics.newSliderJointCreate a new SliderJoint.

Methods

SliderJoint:getAxisGet the SliderJoint's axis.
SliderJoint:getLimitsGet the SliderJoint's limits.
SliderJoint:getLowerLimitGet the SliderJoint's lower limit.
SliderJoint:getPositionGet how far the SliderJoint is extended.
SliderJoint:getUpperLimitGet the SliderJoint's upper limit.
SliderJoint:setAxisSet the SliderJoint's axis.
SliderJoint:setLimitsSet the SliderJoint's limits.
SliderJoint:setLowerLimitSet the SliderJoint's lower limit.
SliderJoint:setUpperLimitSet the SliderJoint's upper limit.

See also