setOrientation.lua 812 B

123456789101112131415161718192021222324252627282930313233
  1. return {
  2. summary = 'Set the orientation of the Source.',
  3. description = 'Sets the orientation of the Source in angle/axis representation.',
  4. arguments = {
  5. {
  6. name = 'angle',
  7. type = 'number',
  8. description = 'The number of radians the Source should be rotated around its rotation axis.'
  9. },
  10. {
  11. name = 'ax',
  12. type = 'number',
  13. description = 'The x component of the axis of rotation.'
  14. },
  15. {
  16. name = 'ay',
  17. type = 'number',
  18. description = 'The y component of the axis of rotation.'
  19. },
  20. {
  21. name = 'az',
  22. type = 'number',
  23. description = 'The z component of the axis of rotation.'
  24. }
  25. },
  26. returns = {},
  27. related = {
  28. 'Source:setPosition',
  29. 'Source:setPose',
  30. 'Source:setCone',
  31. 'lovr.audio.setOrientation'
  32. }
  33. }