getOrientation.lua 792 B

1234567891011121314151617181920212223242526272829303132333435
  1. return {
  2. summary = 'Get the Shape\'s orientation.',
  3. description = 'Get the orientation of the Shape relative to its Collider.',
  4. arguments = {},
  5. returns = {
  6. angle = {
  7. type = 'number',
  8. description = 'The number of radians the Shape is rotated.'
  9. },
  10. ax = {
  11. type = 'number',
  12. description = 'The x component of the rotation axis.'
  13. },
  14. ay = {
  15. type = 'number',
  16. description = 'The y component of the rotation axis.'
  17. },
  18. az = {
  19. type = 'number',
  20. description = 'The z component of the rotation axis.'
  21. }
  22. },
  23. variants = {
  24. {
  25. arguments = {},
  26. returns = { 'angle', 'ax', 'ay', 'az' }
  27. }
  28. },
  29. related = {
  30. 'Shape:getPosition',
  31. 'Shape:setPosition',
  32. 'Shape:getPose',
  33. 'Shape:setPose'
  34. }
  35. }