lovr.physics.newSliderJoint
Creates a new SliderJoint.
slider = lovr.physics.newSliderJoint(colliderA, colliderB, ax, ay, az)
Arguments
Name | Type | Description |
colliderA | Collider | The first collider to attach the Joint to. |
colliderB | Collider | The second collider to attach the Joint to. |
ax | number | The x component of the slider axis. |
ay | number | The y component of the slider axis. |
az | number | The z component of the slider axis. |
Returns
Name | Type | Description |
slider | SliderJoint | The new SliderJoint. |
Notes
A slider joint constrains two colliders to only allow movement along the slider's axis.
See also
lovr.physics.newBallJoint
lovr.physics.newDistanceJoint
lovr.physics.newHingeJoint
lovr.physics