I have a moving object that passes through 180° longitude by latitude and longitude interpolation, but at this time the object cannot be smoothly interpolated from 179° longitude to -179° longitude, but instead arrives in a circle of 360°. Is there any API that can handle this?
I wish I could help.
Using the ECEF (Earth centered, Earth Fixed) coordinate system (EPSG: 4978) to do the lerp should resolve your problem.
(1) Make sure you use UE5.0 or above to ensure double precision of float type in the blueprint.
(2) Use the node “Longitude Latitude Height to Earth Centered Earth Fixed” to Convert longitude, latitude, and height to ECEF coordinates.
(3) Use the node “Move to Earth Centered Earth Fixed Position” to move the Cesium Globe Anchor. With Cesium Globe Anchor’s “Adjust Orientation for Globe when Moving” is checked, the node will also update the orientation based on the globe curvature. So you don’t need to deal with the Earth Centered Earth Fixed Rotation.
1 Like