setOrientation.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. return {
  2. tag = 'listener',
  3. summary = 'Set the orientation of the listener.',
  4. description = 'Sets the orientation of the virtual audio listener in angle/axis representation.',
  5. arguments = {
  6. angle = {
  7. type = 'number',
  8. description = 'The number of radians the listener should be rotated around its rotation axis.'
  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. orientation = {
  23. type = 'Quat',
  24. description = 'The orientation of the listener.'
  25. }
  26. },
  27. returns = {},
  28. variants = {
  29. {
  30. description = 'Set the listener orientation using numbers.',
  31. arguments = { 'angle', 'ax', 'ay', 'az' },
  32. returns = {}
  33. },
  34. {
  35. description = 'Set the listener orientation using a vector.',
  36. arguments = { 'orientation' },
  37. returns = {}
  38. }
  39. },
  40. related = {
  41. 'lovr.audio.setPosition',
  42. 'lovr.audio.setPose',
  43. 'Source:setOrientation'
  44. }
  45. }