getOrientation.lua 843 B

1234567891011121314151617181920212223242526272829303132333435
  1. return {
  2. tag = 'listener',
  3. summary = 'Get the orientation of the listener.',
  4. description = [[
  5. Returns the orientation of the virtual audio listener in angle/axis representation.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. {
  10. name = 'angle',
  11. type = 'number',
  12. description = 'The number of radians the listener is rotated around its axis of rotation.'
  13. },
  14. {
  15. name = 'ax',
  16. type = 'number',
  17. description = 'The x component of the axis of rotation.'
  18. },
  19. {
  20. name = 'ay',
  21. type = 'number',
  22. description = 'The y component of the axis of rotation.'
  23. },
  24. {
  25. name = 'az',
  26. type = 'number',
  27. description = 'The z component of the axis of rotation.'
  28. }
  29. },
  30. related = {
  31. 'lovr.audio.getPosition',
  32. 'lovr.audio.getPose',
  33. 'Source:getOrientation'
  34. }
  35. }