getOrientation.lua 859 B

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