need help with rotation

hi all,

i am trying to develop a game and i need my camera object to rotate when i rotate my device (i.e. an android device) can anyone help me figure out how that can be done i am sure it needs to be done with some input sensors made available by the device but i am unable to figure it out

Thanks and Regards
Kishan

Unity - Scripting API: Gyroscope.attitude ?

Really? Have you tried that? Because usually there’s lots of transform.parent rotation that depends on device orientation and attitude must be multiplied by a quaternion that also depends on device orientation :frowning: