- Home /
Why is compass heading affected by acceleration?
On Android, with Input.Location enabled, I can get the compass' heading. However, I've noticed that when moving the device quickly I can affect the heading by huge amounts. For example, when in the passenger seat of a car going 100km/h, the compass will always point South-West no matter which way I turn, but when stuck at a red light it works normally. At home, if I quickly move my phone around I can alter the heading by a huge amount. And lastly, if I simply tilt the phone backwards beyond 90 degrees, the heading flips 180.
Comparing this to an app like Google Maps, which has a flawless heading, I'm wondering what is different about Unity's compass service - shouldn't it be using the same Android API as Google Maps? Am I just misusing heading? This same behaviour can be observed in Pokemon GO, which is also built in Unity.
Your answer
Follow this Question
Related Questions
Input.location problem 0 Answers
GPS 2D compass to point to Longitude and Latitude 1 Answer
Input.compass returns 0 on iOS 7 / iPhone 5S - 4.3.4 1 Answer
Is there a way to access GPS data/Input.Location without wifi? On my device (S7) it only works with. 0 Answers
Get Real GPS not WiFi GPS 2 Answers