Hello! I’m pretty new to Unity on Android. I’m trying to simulate a person’s eyes moving around their head using the gyroscope in a Nexus 5. I have a sphere with a camera attached to it that will rotate when I rotate the phone (I’m using Input.gyro). Everything works really well until I add in the gvrViewMain object which rotates the camera and ignores the sphere. Any thoughts of how to get the sphere to rotate while in VR mode too? Thanks very much!
When moving a VR camera’s transform, you must move a parent gameobject’s transform, not move the camera directly.
Thanks very much! This solved my problem. Very much appreciated!
Do you happen to know how to change the axes being used by Input.gyro? Each axis is referencing the wrong rotation i.e. turning my head left and right makes the image move up and down. Thanks again!
Hmm I don’t know because I have not used input.gyro (I have let vr sdks deal with this so there is native head movement in vr).
I found this:
Which lead me to a forum post:
Where I found an asset which may be helpful:
OK. Interesting. I’ll take a look at that. Thanks very much!