newCapsuleCollider.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. return {
  2. tag = 'colliders',
  3. summary = 'Add a Collider with a CapsuleShape to the World.',
  4. description = 'Adds a new Collider to the World with a CapsuleShape already attached.',
  5. arguments = {
  6. {
  7. name = 'x',
  8. type = 'number',
  9. default = '0',
  10. description = 'The x coordinate of the center of the capsule.'
  11. },
  12. {
  13. name = 'y',
  14. type = 'number',
  15. default = '0',
  16. description = 'The y coordinate of the center of the capsule.'
  17. },
  18. {
  19. name = 'z',
  20. type = 'number',
  21. default = '0',
  22. description = 'The z coordinate of the center of the capsule.'
  23. },
  24. {
  25. name = 'radius',
  26. type = 'number',
  27. default = '1',
  28. description = 'The radius of the capsule, in meters.'
  29. },
  30. {
  31. name = 'length',
  32. type = 'number',
  33. default = '1',
  34. description = 'The length of the capsule, not including the caps, in meters.'
  35. }
  36. },
  37. returns = {
  38. {
  39. name = 'collider',
  40. type = 'Collider',
  41. description = 'The new Collider.'
  42. }
  43. },
  44. related = {
  45. 'CapsuleShape',
  46. 'Collider',
  47. 'World:newCollider',
  48. 'World:newBoxCollider',
  49. 'World:newCylinderCollider',
  50. 'World:newMeshCollider',
  51. 'World:newSphereCollider'
  52. }
  53. }