How to get the center of the earth

How can I get the UE coordinates of the earth center in the scene? I tried this method, but the result seems to be inaccurate

I would expect that to work. How inaccurate is it, and how are you measuring? In UE4 that will return 32-bit floating point coordinates, and with numbers that large the result can only be accurate to a meter or so. For more accurate results, you can either switch to UE5 (which supports double precision from Blueprints), or you can use C++ to call the double-precision versions in UE4.

I want to know whether this method is correct

Hi @peijw, this method should be correct. Let us know if you are still experiencing problems.