1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- return {
- tag = 'joints',
- summary = 'Create a new SliderJoint.',
- description = 'Creates a new SliderJoint.',
- arguments = {
- {
- name = 'colliderA',
- type = 'Collider',
- description = 'The first collider to attach the Joint to.'
- },
- {
- name = 'colliderB',
- type = 'Collider',
- description = 'The second collider to attach the Joint to.'
- },
- {
- name = 'ax',
- type = 'number',
- description = 'The x component of the slider axis.'
- },
- {
- name = 'ay',
- type = 'number',
- description = 'The y component of the slider axis.'
- },
- {
- name = 'az',
- type = 'number',
- description = 'The z component of the slider axis.'
- }
- },
- returns = {
- {
- name = 'slider',
- type = 'SliderJoint',
- description = 'The new SliderJoint.'
- }
- },
- notes = [[
- A slider joint constrains two colliders to only allow movement along the slider's axis.
- ]],
- related = {
- 'lovr.physics.newBallJoint',
- 'lovr.physics.newDistanceJoint',
- 'lovr.physics.newHingeJoint'
- }
- }
|