getPose.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. return {
  2. summary = 'Get the pose of the Collider.',
  3. description = 'Returns the position and orientation of the Collider.',
  4. arguments = {},
  5. returns = {
  6. x = {
  7. type = 'number',
  8. description = 'The x position of the Collider, in meters.'
  9. },
  10. y = {
  11. type = 'number',
  12. description = 'The y position of the Collider, in meters.'
  13. },
  14. z = {
  15. type = 'number',
  16. description = 'The z position of the Collider, in meters.'
  17. },
  18. angle = {
  19. type = 'number',
  20. description = 'The number of radians the Collider is rotated around its axis of rotation.'
  21. },
  22. ax = {
  23. type = 'number',
  24. description = 'The x component of the axis of rotation.'
  25. },
  26. ay = {
  27. type = 'number',
  28. description = 'The y component of the axis of rotation.'
  29. },
  30. az = {
  31. type = 'number',
  32. description = 'The z component of the axis of rotation.'
  33. }
  34. },
  35. variants = {
  36. {
  37. arguments = {},
  38. returns = { 'x', 'y', 'z', 'angle', 'ax', 'ay', 'az' }
  39. }
  40. },
  41. related = {
  42. 'Collider:getPosition',
  43. 'Collider:getOrientation'
  44. }
  45. }