Search Unity

Gyroscope.attitude rolls back?

Discussion in 'Scripting' started by Yandalf, Nov 6, 2019.

  1. Yandalf

    Yandalf

    Joined:
    Feb 11, 2014
    Posts:
    491
    Hello!

    I'm trying to build a camera driven by an android phone's gyroscope. It all initially seems to work fine, but when I make a gradual turn and then stop, the camera will slowly rotate back to its starting orientation after I've stopped. This seems to only happen with yaw rotation. Pitch and roll seem to work fine.
    I don't seem to find anyone talking about this issue.
    Is this a problem with my phone, or is something else going on? I'm using a Nokia 5.
     
    Last edited: Nov 6, 2019