getLocalVector.lua 1.1 KB

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