Hello, first of all, this is a great software, but at the moment I have encountered a problem, I want to click on a point on the map by the mouse to generate an object, but an unexpected error occurred when I converted the coordinates, the converted Unity coordinate value is biased, how to solve it? Here’s my code, please help me see what’s wrong:
Vector3 objPos = camera.ScreenToWorldPoint(Input.mousePosition);
double3 vars = new double3(objPos.x, objPos.y, objPos.z);
double3 ecef = georeference.TransformUnityPositionToEarthCenteredEarthFixed(vars);
double3 lonLatHeight = CesiumWgs84Ellipsoid.EarthCenteredEarthFixedToLongitudeLatitudeHeight(ecef);
double3 t3 = georeference.TransformEarthCenteredEarthFixedPositionToUnity(new double3(lonLatHeight.y, lonLatHeight.x, lonLatHeight.z));
GameObject obj = GameObject.CreatePrimitive(PrimitiveType.Cube);
obj.AddComponent<CesiumGlobeAnchor>().positionGlobeFixed = new double3(t3.x, t3.y, t3.z);