| 123456789101112131415161718192021222324252627282930313233 |
- return {
- tag = 'shapes',
- summary = 'Create a new SphereShape.',
- description = 'Creates a new SphereShape.',
- arguments = {
- radius = {
- type = 'number',
- default = '1',
- description = 'The radius of the sphere, in meters.'
- }
- },
- returns = {
- sphere = {
- type = 'SphereShape',
- description = 'The new SphereShape.'
- }
- },
- variants = {
- {
- arguments = { 'radius' },
- returns = { 'sphere' }
- }
- },
- notes = 'A Shape can be attached to a Collider using `Collider:addShape`.',
- related = {
- 'SphereShape',
- 'lovr.physics.newBoxShape',
- 'lovr.physics.newCapsuleShape',
- 'lovr.physics.newCylinderShape',
- 'lovr.physics.newMeshShape',
- 'lovr.physics.newTerrainShape'
- }
- }
|