sphere.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. return {
  2. tag = 'graphicsPrimitives',
  3. summary = 'Draw a sphere.',
  4. description = 'Draws a sphere.',
  5. arguments = {
  6. material = {
  7. type = 'Material',
  8. description = 'The Material to apply to the sphere.'
  9. },
  10. x = {
  11. type = 'number',
  12. default = '0',
  13. description = 'The x coordinate of the center of the sphere.'
  14. },
  15. y = {
  16. type = 'number',
  17. default = '0',
  18. description = 'The y coordinate of the center of the sphere.'
  19. },
  20. z = {
  21. type = 'number',
  22. default = '0',
  23. description = 'The z coordinate of the center of the sphere.'
  24. },
  25. radius = {
  26. type = 'number',
  27. default = '1',
  28. description = 'The radius of the sphere, in meters.'
  29. },
  30. angle = {
  31. type = 'number',
  32. default = '0',
  33. description = 'The rotation of the sphere around its rotation axis, in radians.'
  34. },
  35. ax = {
  36. type = 'number',
  37. default = '0',
  38. description = 'The x coordinate of the sphere\'s axis of rotation.'
  39. },
  40. ay = {
  41. type = 'number',
  42. default = '1',
  43. description = 'The y coordinate of the sphere\'s axis of rotation.'
  44. },
  45. az = {
  46. type = 'number',
  47. default = '0',
  48. description = 'The z coordinate of the sphere\'s axis of rotation.'
  49. }
  50. },
  51. returns = {},
  52. variants = {
  53. {
  54. arguments = { 'x', 'y', 'z', 'radius', 'angle', 'ax', 'ay', 'az' },
  55. returns = {}
  56. },
  57. {
  58. arguments = { 'material', 'x', 'y', 'z', 'radius', 'angle', 'ax', 'ay', 'az' },
  59. returns = {}
  60. }
  61. }
  62. }