Converting longitude/latitude to world coordinates

Hi @saleh01, welcome to the community!

First, I recommend attaching a CesiumGlobeAnchor component to each sphere. The component will keep track of the globe-relative position of the object (in long / lat coordinates), and it automatically updates the Unity position to keep track of this. You can learn more about Cesium Globe Anchor by following this tutorial!

However, if you would prefer to place the objects manually, then you can check out the following functions. First, you’ll have to call CesiumWgs84Ellipsoid.LongitudeLatitudeHeightToEarthCenteredEarthFixed to convert to ECEF coordinates.

Then, given those ECEF coordinates, you’ll want to call TransformEarthCenteredEarthFixedPositionToUnity on the CesiumGeoreference.

I hope that helps! Let us know if you have any follow-up questions. :smile: