Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

GPS float precision issue!

$
0
0
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.

Code (CSharp):
  1. UnitySetLastLocation(double timestamp,
  2.                     float latitude,
  3.                     float longitude,
  4.                     float altitude,
  5.                     float...
GPS float precision issue!

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>