# How to get altitude above terrain

**URL:** <https://community.cesium.com/t/how-to-get-altitude-above-terrain/19802>\
**Category:** Cesium for Unreal\
**Created:** [August 2, 2022, 9:23am UTC](https://community.cesium.com/t/how-to-get-altitude-above-terrain/19802 "2022-08-02T09:23:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Raffaele\_Bortoli](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/raffaele_bortoli/32/10313_2.png) [@Raffaele\_Bortoli](https://community.cesium.com/u/Raffaele_Bortoli)\
**Post date:** [August 10, 2022, 4:33am UTC](https://community.cesium.com/t/how-to-get-altitude-above-terrain/19802/3 "2022-08-10T04:33:33Z")

</div>

Thank you Alex,

I manage to get it to work, I followed the instruction from the “Line Trace” example, but I simplied the computation by providing the second point for Hit Detection via C++, I’m using UE5 and the vector approach was not working exactly as supposed to be.

Raf

---

_[View the full topic](https://community.cesium.com/t/how-to-get-altitude-above-terrain/19802)._
