How can I disable the positional tracking in Unity 5.4.0p4 for VR devices?

Hi,

I’m on Unity 5.4.0p4 and need to disable the positional tracking for the camera. I need only the rotational tracking.

In previous Unity3D versions I used the OVR implementation and moved the camera game object to the center:
void FixedUpdate() {
myCamera.transform.position = new Vector3 (0,0,0);
}

And now with the Unity VR implementation, I placed the camera into an empty game object (myCameraRig) and moved this:
myCameraRig.transform.position = new Vector3 (-myCamera.transform.position.x, -myCamera.transform.position.y, -myCamera.transform.position.z);

But then one eye will be rendered with the position from the head tracking system and one eye is rendered with the centered camera position.

Any suggestions?

I had the same issue. The easiest solution I found was the parent the camera to a empty GameObject then scale the GameObject to 0,0,0. Oddly enough, it works great!

1 Like

Thank you very much. This is working for me. You are genius!

I have to thank u, too! Great hack! Thx!