How do you turn off cardboard vr head tracking?
Hi,
I am using the Google Cardboard VR plugin for unity. I want to be able to toggle the head tracking on or off. So normally the gyroscope of the phone lets the camera turn around it's access. I want to hit a button that will disable all movement of the camera so the cardboard plugin no longer affects the camera's rotation.
Is this possible? If so, how do I do this? I have looked everywhere online and through the scripts, but I can't find anything that would make this possible.
Thanks
Answer by ruawl · Jun 29, 2017 at 11:03 PM
Are you using the "GvrMain" prefab as camera in your scene? If so, theres a script in the "Head" attached object called "GvrHead". I believe that's what control the camera tracking the head movements so, maybe disabling that script after a button input can handle your necessity.
Idk if that's what you were looking for as an answer, i hope so.
Let me know if you did it anyway, good luck :)
I have GvrController$$anonymous$$ain in the scene. There is no head object attached though.
Also it is called Gvr$$anonymous$$ain not GvrController$$anonymous$$ain. I searched the projects files and I couldn't fine GvrHead or Gvr$$anonymous$$ain. Not sure why the plugin is so different :/
Your answer
Follow this Question
Related Questions
Black HDM yet Editor VR Cam Preview AOK... 0 Answers
How to Make Player Feel Tiny 1 Answer
Camera.RenderToCubemap in VR has black edges 1 Answer
Oculus VR camera spins out of control 0 Answers