-
-
Notifications
You must be signed in to change notification settings - Fork 36k
Closed
Description
Description
When a listener is rotated around its x-axis, PositionalAudio from its right side comes out of the left speaker.
A rotational angle between -pi/2 and +pi/2 is fine. Other angles flip the left/right audio.
Reproduction steps
- AudioListener at
0, 0, 0
- PositionalAudio at
1, 0, 0
, i.e. on the right side - play audio and confirm sound comes from right speaker
- rotate the AudioListener around x-axis by PI
- notice how the sound comes from the left speaker now
Code
const listener = new THREE.AudioListener();
camera.add(listener);
listener.rotation.x = Math.PI;
const audio = new THREE.PositionalAudio(listener);
audio.setLoop(true);
audio.position.set(1, 0, 0);
Live example
Screenshots
No response
Version
0.176.0
Device
Desktop
Browser
Chrome
OS
MacOS
Mugen87