getWorldVector.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. x = {
  8. type = 'number',
  9. description = 'The x coordinate of the local vector.'
  10. },
  11. y = {
  12. type = 'number',
  13. description = 'The y coordinate of the local vector.'
  14. },
  15. z = {
  16. type = 'number',
  17. description = 'The z coordinate of the local vector.'
  18. },
  19. vector = {
  20. type = 'Vec3',
  21. description = 'The local vector.'
  22. }
  23. },
  24. returns = {
  25. wx = {
  26. type = 'number',
  27. description = 'The x component of the world vector.'
  28. },
  29. wy = {
  30. type = 'number',
  31. description = 'The y component of the world vector.'
  32. },
  33. wz = {
  34. type = 'number',
  35. description = 'The z component of the world vector.'
  36. }
  37. },
  38. variants = {
  39. {
  40. arguments = { 'x', 'y', 'z' },
  41. returns = { 'wx', 'wy', 'wz' }
  42. },
  43. {
  44. arguments = { 'vector' },
  45. returns = { 'wx', 'wy', 'wz' }
  46. }
  47. },
  48. related = {
  49. 'Collider:getLocalVector',
  50. 'Collider:getLocalPoint',
  51. 'Collider:getWorldPoint'
  52. }
  53. }