# Getting altitude in UE4 blueprint?

**URL:** <https://community.cesium.com/t/getting-altitude-in-ue4-blueprint/12843>\
**Category:** Cesium for Unreal\
**Created:** [March 31, 2021, 10:52am UTC](https://community.cesium.com/t/getting-altitude-in-ue4-blueprint/12843 "2021-03-31T10:52:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malkat](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/malkat/32/4453_2.png) [@Malkat](https://community.cesium.com/u/Malkat)\
**Post date:** [March 31, 2021, 10:52am UTC](https://community.cesium.com/t/getting-altitude-in-ue4-blueprint/12843/1 "2021-03-31T10:52:14Z")

</div>

Hello,  
I was wondering if it is possible to get the altitude of an actor, preferably above sea level in a blueprint. Using z value obviously won’t work as it seems the xyz values update along with the world origin as intended (correct me if I’m wrong).

Thank you for your help and Cesium for the incredible plugin!

---

<div class="post-metadata">

**Author:** ![Nithin\_Pranesh](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@Nithin\_Pranesh](https://community.cesium.com/u/Nithin_Pranesh)\
**Post date:** [March 31, 2021, 2:13pm UTC](https://community.cesium.com/t/getting-altitude-in-ue4-blueprint/12843/2 "2021-03-31T14:13:46Z")

</div>

Hello @Malkat ,

That’s correct Unreal coordinates are relative to a “local origin” which can move when “origin rebasing” is enabled on the default **CesiumGeoreference** actor. Additionally, Unreal’s absolute Z coordinate, even without origin rebasing, will still not necessarily be relative to the mean sea level.

We have provided a host of blueprint conversion functions on the **CesiumGeoreference** actor. Use the one that converts from Unreal coordinates to Longitude, Latitude, and Height (relative to the WGS84 ellipsoid, a theoretical sea level estimate). The height value will be the distance in meters of the actor above the ellipsoid that you are looking for.

 ![get-height](https://global.discourse-cdn.com/cesium/original/2X/5/5008e8fa30f010721d5400286367db9d3a76d00e.jpeg)  
_Take the height (z) value from the resulting FVector to find the Cube’s geodetic height._

Let us know if you have any trouble!

---

<div class="post-metadata">

**Author:** ![Malkat](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/malkat/32/4453_2.png) [@Malkat](https://community.cesium.com/u/Malkat)\
**Post date:** [March 31, 2021, 11:16pm UTC](https://community.cesium.com/t/getting-altitude-in-ue4-blueprint/12843/3 "2021-03-31T23:16:33Z")

</div>

Working fine now. Cheers!
