getOrientation.lua 812 B

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