SpatialSound sets the position of the listener

Hi,I have noticed that SpatialSound works through the position of the camera and the sound, but sometimes I set the mesh as the parent of the camera, such as the person in the car or the sound outside the car. At this time, the position of the camera is always (0,0,0), and in this case, the SpatialSound error occurs and the positioning is inaccurate. Can I manually set the position of SpatialSound listener or let SpatialSound work through the absolutePosition of the camera?

Set the camera position, the effect is normal.
https://www.babylonjs-playground.com/#2AH4YH#15

Set the position of the camera parent, the effect is abnormal
https://www.babylonjs-playground.com/#2AH4YH#16

I have solved the problem.:grinning:
BABYLON.Engine.audioEngine.audioContext.listener.setPosition()

1 Like