AudioSource Position in the wrong place in VR
I'm using the official SteamVR package with Unity 5.4.2, and I can't get the audio to play back in the correct positions.
I've got an audio source attached to a GameObject that is using SteamVR_TrackedController, and when I play, that audio's position is not in any way connected to its position relative to the listener (the HMD).
For example: I look room forward, hold the controller in my right hand and extend my arm completely to the right and trigger the sound, and instead of the audio coming from my right (using headphones) I get it from both headphone speakers at equal volume.
The audio clip is mono, Stereo Pan is set to 0, Spatial Blend is at 1, Min Distance is 0.1, Max is 3.
I've tried setting Audio in the project settings to Stereo, Surround, and Surround 5.1, and the results never change.
If I put an audio source on a static object, that plays back in the right place, it's only when it's supposed to play from the tracked object that it's wrong. What am I missing?
Answer by WhiskyNeatGames · Dec 27, 2016 at 09:20 AM
NM, I figured it out. I had an animator on the object, and didn't click the 'apply root motion' tick box, so in-headset the geometry was where it was supposed to be, but as far as the world was concerned it was still at 0,0,0