getPose.lua 1.2 KB

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