Hi all,
Why does unity use float instead of double? I'm getting just 112.123 (longitude), about 3-4 decimals. That's real bad. I lost many decimals/GPS accuracy just because of the data type Unity's chosen.
For iOS, in iPhone_Sensors.mm, I've found these lines.
Unity casts a double into a float.
GPS float precision issue!
Why does unity use float instead of double? I'm getting just 112.123 (longitude), about 3-4 decimals. That's real bad. I lost many decimals/GPS accuracy just because of the data type Unity's chosen.
For iOS, in iPhone_Sensors.mm, I've found these lines.
Unity casts a double into a float.
Code (CSharp):