SliderJoint
EditA SliderJoint is a type of Joint
that only allows colliders to move on a single axis.
Constructor
lovr.physics.newSliderJoint | Create a new SliderJoint. |
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. |
SliderJoint:getAxis | Get the axis of the SliderJoint. |
SliderJoint:getFriction | Get the friction of the SliderJoint. |
SliderJoint:getLimits | Get the position limits of the SliderJoint. |
SliderJoint:getMaxMotorForce | Get the maximum amount of force the motor can use. |
SliderJoint:getMotorForce | Get the current motor force. |
SliderJoint:getMotorMode | Get the motor mode of the SliderJoint. |
SliderJoint:getMotorSpring | Get the spring parameters of the motor target. |
SliderJoint:getMotorTarget | Get the target of the slider motor. |
SliderJoint:getPosition | Get how far the SliderJoint is extended. |
SliderJoint:getSpring | Get the spring parameters of the SliderJoint limits. |
SliderJoint:setFriction | Set the friction of the SliderJoint. |
SliderJoint:setLimits | Set the position limits of the SliderJoint. |
SliderJoint:setMaxMotorForce | Set the maximum amount of force the motor can use. |
SliderJoint:setMotorMode | Set the motor mode of the SliderJoint. |
SliderJoint:setMotorSpring | Set the spring parameters of the motor target. |
SliderJoint:setMotorTarget | Set the target of the slider motor. |
SliderJoint:setSpring | Set the spring parameters of the SliderJoint limits. |