translate.lua 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. return {
  2. tag = 'transform',
  3. summary = 'Translate the coordinate system.',
  4. description = 'Translates the coordinate system.',
  5. arguments = {
  6. x = {
  7. type = 'number',
  8. description = 'The x component of the translation.'
  9. },
  10. y = {
  11. type = 'number',
  12. description = 'The y component of the translation.'
  13. },
  14. z = {
  15. type = 'number',
  16. description = 'The z component of the translation.'
  17. },
  18. translation = {
  19. type = 'Vec3',
  20. description = 'The translation.'
  21. }
  22. },
  23. returns = {},
  24. variants = {
  25. {
  26. description = 'Translate the coordinate system using numbers.',
  27. arguments = { 'x', 'y', 'z' },
  28. returns = {}
  29. },
  30. {
  31. description = 'Translate the coordinate system using a vector.',
  32. arguments = { 'translation' },
  33. returns = {}
  34. }
  35. },
  36. notes = 'Order matters when scaling, translating, and rotating the coordinate system.',
  37. related = {
  38. 'Pass:rotate',
  39. 'Pass:scale',
  40. 'Pass:transform',
  41. 'Pass:origin',
  42. 'Pass:push',
  43. 'Pass:pop'
  44. }
  45. }