Quaternion Orientation changing axis problem.
Good afternoon Unity Community,
I've been involved in a project where I've to use a system really look-alike the Lenovo Star wars challenges AR project, where you have the mobile flipped horizontally instead of vertically (as many VR systems such as Google VR uses). The main problem is that when I change the Gyroscope axis to get the rotation horizontally sometimes orientation gets wrong and axis gets reversed.
I'm changing the axis from y to z in euler angles, in order to change the gyroscope inputs from vertically friendly to horizontally friendly, but sometimes I keep getting the reversed problem which seems that the camera is rotating in a wrong axis getting itself flipped and changing completely the main orientation.
a picture that shows how the mobile gets into the helmet:
Sorry If I didn't explain myself properly, I'm up to help you understand the main problem providing everything needed in order to solve this problem. Thank you for your patience and attention!