Inaccurate rotations with android phone gyroscope
Hello, I'm working on a project that implements gyroscope controls. Basically, the player rotates to the same orientation as the gyro. After a couple full 360 rotations, the player is slightly offset on an angle, when the phone is straight/flat.
I want the player to return to it's original position every time I rotate the phone, but it seems to offset it's rotation a little more every time I do a full 360 rotation with the phone.
It seems like it's just the inaccuracy of the hardware itself. Is there a way to make this "more accurate"?
Comment