About Unity coordinates to longitude and latitude coordinates

You currently have no option but to go through ECEF coordinates. It’s not too hard, though. Something like:

CesiumGeoreference georeference = GetComponentInParent<CesiumGeoreference>();
double3 ecef = georeference.TransformUnityPositionToEarthCenteredEarthFixed(unityCoordinates);
double3 lonLatHeight = CesiumWgs84Ellipsoid.EarthCenteredEarthFixedToLongitudeLatitudeHeight(ecef);
double longitude = lonLatHeight.x;
double latitude = lonLatHeight.y;
double height = lonLatHeight.z;
1 Like