setGravity.lua 712 B

12345678910111213141516171819202122232425262728293031323334
  1. return {
  2. tag = 'worldProperties',
  3. summary = 'Set the gravity of the World.',
  4. description = 'Sets the gravity of the World.',
  5. arguments = {
  6. xg = {
  7. type = 'number',
  8. description = 'The x component of the gravity force.'
  9. },
  10. yg = {
  11. type = 'number',
  12. description = 'The y component of the gravity force.'
  13. },
  14. zg = {
  15. type = 'number',
  16. description = 'The z component of the gravity force.'
  17. },
  18. gravity = {
  19. type = 'Vec3',
  20. description = 'The gravity force.'
  21. }
  22. },
  23. returns = {},
  24. variants = {
  25. {
  26. arguments = { 'xg', 'yg', 'zg' },
  27. returns = {}
  28. },
  29. {
  30. arguments = { 'gravity' },
  31. returns = {}
  32. }
  33. }
  34. }