How to stay attached to the earth's surface?

Thank you for your reply! @agallegos


I need to get the altitude of positions on spline point.The #online EGM96 calculator can’t meet my requirements.
I used this solution: # Stick to the ground , but performance will degrade and this not work if the spline is far away from the player, and the tiles it is passing over are not loaded.