newSphereCollider.lua 1.1 KB

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