I'm developing for oculus go, and I'm making a sky dive like game where the player controls the hovering of the character with the head. I created an empty game object and placed the ovr camera rig inside to move it, then i use camera.main.transform.rotation
to get the oculus rotation, and to move the character to the direction the player is looking at. For example, i print the camera.main.transform.rotation
and get 4 values from -1 going to 0 and finally 1, what i did to get the tracking was
if(camera.main.transform.rotation.x>0)
{
//move the player up
}
Imagine if the oculus go prints values from 0 to 1 when I look up with camera.main.transform.rotation.x
When I get the apk it's fine and all but sometimes the axis are inverted and I have to restart the oculus go to fix this. Does anyone know why this happends, and what I'm doing wrong?