| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- return {
- tag = 'colliders',
- summary = 'Add a Collider with a CapsuleShape to the World.',
- description = 'Adds a new Collider to the World with a CapsuleShape already attached.',
- arguments = {
- {
- name = 'x',
- type = 'number',
- default = '0',
- description = 'The x coordinate of the center of the capsule.'
- },
- {
- name = 'y',
- type = 'number',
- default = '0',
- description = 'The y coordinate of the center of the capsule.'
- },
- {
- name = 'z',
- type = 'number',
- default = '0',
- description = 'The z coordinate of the center of the capsule.'
- },
- {
- 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 = 'collider',
- type = 'Collider',
- description = 'The new Collider.'
- }
- },
- related = {
- 'CapsuleShape',
- 'Collider',
- 'World:newCollider',
- 'World:newBoxCollider',
- 'World:newCylinderCollider',
- 'World:newMeshCollider',
- 'World:newSphereCollider'
- }
- }
|