newBoxCollider.lua 1.3 KB

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