Skip to content

Commit b13171d

Browse files
committed
Update lovr.run;
1 parent 23ed9b1 commit b13171d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/lovr.run.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ it is helpful to override this callback for custom behavior. For reference, her
2626
end
2727

2828
local dt = lovr.timer.step()
29+
30+
if lovr.audio then
31+
lovr.audio.update()
32+
if lovr.headset and lovr.headset.isPresent() then
33+
lovr.audio.setPosition(lovr.headset.getPosition())
34+
lovr.audio.setOrientation(lovr.headset.getOrientation())
35+
end
36+
end
37+
2938
if lovr.update then
3039
lovr.update(dt)
3140
end

0 commit comments

Comments
 (0)