AudioListener: Set the proper up-direction#31054
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
|
I have tested the PR with the fiddle and a modified version of I initially wondered why this bug has not been detected earlier but I suspect in most use cases (e.g. when the camera and thus the listener is transformed via |
|
@Mugen87 I also thought about the use case where the audio listener is added as a child of the camera, and Maybe your tests case can confirm that, too? 🙏 |
|
Tested and I did not hear any differences. |
Fixes #31048.
The
up-directionrequired by the AudioListener API is not the same as the three.jsup-direction.See https://developer.mozilla.org/en-US/docs/Web/API/AudioListener for an explanation.