First solution directly gets the terrain height from sea level using the craft roll axis function, you could subtract it to get the height difference between the craft and the terrain. Credits to FrenchStacks
!
Second solution uses the heading function, cos and sine to get the terrain ceiling, same thing as the first solution but a little more complicated.
!
Third solution using funk, credits to dooiereier
!
https://imgur.com/a/wMZv0AI
@WilliamHarrison
Fuck that wasnt even directed at you.
Poor baby got offended for nothing.