getOrientation.lua 804 B

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