Hello,
I am getting really confused with gyroscope in Unity.
Environment: I set the game to be landscape Right. I use both IOS and ANDROID.
case 1:
I switch on the APP with the phone held in portrait mode. The attitude is (0,0,0.7,0.7). I then rotate 90 degrees to be in landscape right mode, the attitude is now (0,0,0,1).
case 2:
I switch on the APP with the phone held in landscape mode. The attitude is (0,0,0.7,0.7).
In both cases, I am ready to play the game but the Attitude is different!! Can someone explain how I can avoid this?
What I am trying to achieve is to read the rotation angle between the final attitude in the loading screen and its current attitude in one particular axis. like if one man puts a phone on his quats and does squats, to track the squat process. However, the user is required to stand straight during loading screen, the user can hold the phone in anydirection in the x-y plane.
PS: I noticed android and IOS also behave differently, but I’ll leave if for another question.