getLocalPoint.lua 1.2 KB

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