2
0

getWorldVector.lua 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. return {
  2. summary = 'Convert a vector from local space to world space.',
  3. description = [[
  4. Converts a direction vector from local space to world space.
  5. ]],
  6. arguments = {
  7. {
  8. name = 'x',
  9. type = 'number',
  10. description = 'The x coordinate of the local vector.'
  11. },
  12. {
  13. name = 'y',
  14. type = 'number',
  15. description = 'The y coordinate of the local vector.'
  16. },
  17. {
  18. name = 'z',
  19. type = 'number',
  20. description = 'The z coordinate of the local vector.'
  21. }
  22. },
  23. returns = {
  24. {
  25. name = 'wx',
  26. type = 'number',
  27. description = 'The x component of the world vector.'
  28. },
  29. {
  30. name = 'wy',
  31. type = 'number',
  32. description = 'The y component of the world vector.'
  33. },
  34. {
  35. name = 'wz',
  36. type = 'number',
  37. description = 'The z component of the world vector.'
  38. }
  39. },
  40. related = {
  41. 'Collider:getLocalVector',
  42. 'Collider:getLocalPoint',
  43. 'Collider:getWorldPoint'
  44. }
  45. }