# What's wrong with my relative location?

**URL:** <https://forums.unrealengine.com/t/whats-wrong-with-my-relative-location/317151>\
**Category:** Blueprint\
**Tags:** relative-location, unreal-engine, question, Blueprint\
**Created:** [May 1, 2015, 9:31pm UTC](https://forums.unrealengine.com/t/whats-wrong-with-my-relative-location/317151 "2015-05-01T21:31:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AttemptD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AttemptD](https://forums.unrealengine.com/u/AttemptD)\
**Post date:** [May 1, 2015, 9:31pm UTC](https://forums.unrealengine.com/t/whats-wrong-with-my-relative-location/317151/1 "2015-05-01T21:31:23Z")

</div>

My cube roles around on a grid. I have a line trace from its work location to pointing Down on the z to make sure there’s a floor. But if the map ever tilts 90 degrees now the line will point to the side. Obviously.  
I figured I needed to use RELATIVE location instead. But when doing that its drawing a line way out in the opened field.

Is there something I dont understand about relative location??? Its not right on my cube like world location is…

---

<div class="post-metadata">

**Author:** ![AttemptD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AttemptD](https://forums.unrealengine.com/u/AttemptD)\
**Post date:** [May 4, 2015, 5:38am UTC](https://forums.unrealengine.com/t/whats-wrong-with-my-relative-location/317151/2 "2015-05-04T05:38:49Z")

</div>

Can someone please help me?? Why would my relative by so far away from the actor when the world location isn’t???

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_277c86b9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_277c86b9](https://forums.unrealengine.com/u/anonymous_user_277c86b9)\
**Post date:** [December 9, 2015, 7:06pm UTC](https://forums.unrealengine.com/t/whats-wrong-with-my-relative-location/317151/3 "2015-12-09T19:06:15Z")

</div>

i think you should use `GetComponentLocation` .

i had the same problem with relative location, that was far away from my actor. then i used its component location and i got the exact result as i wanted.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_277c86b9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_277c86b9](https://forums.unrealengine.com/u/anonymous_user_277c86b9)\
**Post date:** [December 9, 2015, 7:07pm UTC](https://forums.unrealengine.com/t/whats-wrong-with-my-relative-location/317151/4 "2015-12-09T19:07:16Z")

</div>

use your actor’s component location instead
