"Heads Up!" Like screen rotate effect

Hello world,
How can I make a C# Script that makes my game recognize when I am tilting my phone with the screen down or when I lift the screen up?
Mechanics like in this game in which they activate use the “Correct” and “Pass” answers on phone tilt.
Which sensor are used? Is it the accelerometer? Can you give me a script example? :slight_smile:

The main input for detecting a phone’s orientation in space is the gyroscope. In some cases you may want to use the compass.

The accelerometer isn’t as good at detecting tilt because it can’t tell the difference between movement and gravity.

2 Likes

Thank you, I will read about them then.