Map spline to terrain heigth

Hi,
I started with the flight track demo. I have an gps track from driving and want to map it to terrain height (+ some distance) because the recorded height in the track oscillates a lot. Can anybody help me with a code sample.

Kind regards
Marc

Hi @DerMarc,

Your best bet currently may be to use a Line Trace as described in this comment - Get altitude at lat long - #2 by xuelong

For a spline, I’d recommend setting the X and Y of the spline point from the GPS track, and using a Line Trace to set the height during runtime.