getPosition.lua 699 B

12345678910111213141516171819202122232425262728293031
  1. return {
  2. summary = 'Get the position of the Source.',
  3. description = [[
  4. Returns the position of the Source, in meters. Setting the position will cause the Source to
  5. be distorted and attenuated based on its position relative to the listener.
  6. ]],
  7. arguments = {},
  8. returns = {
  9. {
  10. name = 'x',
  11. type = 'number',
  12. description = 'The x coordinate.'
  13. },
  14. {
  15. name = 'y',
  16. type = 'number',
  17. description = 'The y coordinate.'
  18. },
  19. {
  20. name = 'z',
  21. type = 'number',
  22. description = 'The z coordinate.'
  23. }
  24. },
  25. related = {
  26. 'Source:getOrientation',
  27. 'Source:getPose',
  28. 'Source:getCone',
  29. 'lovr.audio.getPosition'
  30. }
  31. }