| 123456789101112131415161718192021222324252627282930313233 |
- return {
- tag = 'shapes',
- summary = 'Create a new CapsuleShape.',
- description = 'Creates a new CapsuleShape. Capsules are cylinders with hemispheres on each end.',
- arguments = {
- {
- name = 'radius',
- type = 'number',
- default = '1',
- description = 'The radius of the capsule, in meters.'
- },
- {
- name = 'length',
- type = 'number',
- default = '1',
- description = 'The length of the capsule, not including the caps, in meters.'
- }
- },
- returns = {
- {
- name = 'capsule',
- type = 'CapsuleShape',
- description = 'The new CapsuleShape.'
- }
- },
- notes = 'A Shape can be attached to a Collider using `Collider:addShape`.',
- related = {
- 'CapsuleShape',
- 'lovr.physics.newBoxShape',
- 'lovr.physics.newCylinderShape',
- 'lovr.physics.newSphereShape'
- }
- }
|