# How to get the location of an actors top?

**URL:** <https://forums.unrealengine.com/t/how-to-get-the-location-of-an-actors-top/388734>\
**Category:** Asset Creation\
**Tags:** world, return, get, unreal-engine, question\
**Created:** [March 23, 2017, 2:44am UTC](https://forums.unrealengine.com/t/how-to-get-the-location-of-an-actors-top/388734 "2017-03-23T02:44:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JerichoBLT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JerichoBLT](https://forums.unrealengine.com/u/JerichoBLT)\
**Post date:** [March 23, 2017, 2:44am UTC](https://forums.unrealengine.com/t/how-to-get-the-location-of-an-actors-top/388734/1 "2017-03-23T02:44:44Z")

</div>

If I use the “GetWorldLocation” action, It returns the location of it’s center. How can I return the location of it’s top, or bottom, or any part of it I want?

---

<div class="post-metadata">

**Author:** ![Muelas.Aitzol](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Muelas.Aitzol](https://forums.unrealengine.com/u/Muelas.Aitzol)\
**Post date:** [March 23, 2017, 3:59am UTC](https://forums.unrealengine.com/t/how-to-get-the-location-of-an-actors-top/388734/2 "2017-03-23T03:59:17Z")

</div>

To get a location relative to the center, you need to know what kind of offset you want.  
For instance, assuming you have a Character, which has a CapsuleComponent, you could get the top of the capsule like this:

 ![131333-getcapsuletop.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/e/18e5761c0ae1a07fd834921f5e704c8f942ca926.jpeg)

Alternatively, you could rely on the bounding box of the MeshComponent:

 ![131334-getboxtop.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/d/ccd0d0ee49e86d41069b10f3dc08e83302120654.jpeg)

Hope this helps
