getOrientation.lua 887 B

12345678910111213141516171819202122232425262728293031323334353637
  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. angle = {
  10. type = 'number',
  11. description = 'The number of radians the listener is rotated around its axis of rotation.'
  12. },
  13. ax = {
  14. type = 'number',
  15. description = 'The x component of the axis of rotation.'
  16. },
  17. ay = {
  18. type = 'number',
  19. description = 'The y component of the axis of rotation.'
  20. },
  21. az = {
  22. type = 'number',
  23. description = 'The z component of the axis of rotation.'
  24. }
  25. },
  26. variants = {
  27. {
  28. arguments = {},
  29. returns = { 'angle', 'ax', 'ay', 'az' }
  30. }
  31. },
  32. related = {
  33. 'lovr.audio.getPosition',
  34. 'lovr.audio.getPose',
  35. 'Source:getOrientation'
  36. }
  37. }