# How to use local space coordinates?

**URL:** <https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177>\
**Category:** Blueprint\
**Tags:** actor, unreal-engine, local, Blueprint, question\
**Created:** [October 22, 2015, 10:14pm UTC](https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177 "2015-10-22T22:14:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4e75d603](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4e75d603](https://forums.unrealengine.com/u/anonymous_user_4e75d603)\
**Post date:** [October 22, 2015, 10:14pm UTC](https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177/1 "2015-10-22T22:14:32Z")

</div>

I have a blueprint set up like in the picture below …

![63750-example.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/f/aaf32f7e1d4e69592cbd88a7ccd93354849e136b.jpeg)

… now, everything works but if i turn the blueprint a bit left or right it loses the 2 coordinates i gave it because those are in words space.  
Is there a way around this that you know ? Thank you for your time !!

---

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [October 22, 2015, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177/2 "2015-10-22T23:22:01Z")

</div>

Set Relative Location / Set World Location / Set Actor Location are three separate nodes:

I believe relative is local, World is world and actor location is world. I may be wrong but play around and you should figure them out pretty quickly.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4e75d603](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4e75d603](https://forums.unrealengine.com/u/anonymous_user_4e75d603)\
**Post date:** [October 23, 2015, 10:01am UTC](https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177/3 "2015-10-23T10:01:20Z")

</div>

But I would need a “get relative” node, not a set one, this is the full set up I needed to fix:

 ![63793-pic.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/c/72c26b7ecfabfd380403d9d3fa553d29453ab091.jpeg)

I need a way to get the relative position of a component and then add to it

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_087ae450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_087ae450](https://forums.unrealengine.com/u/anonymous_user_087ae450)\
**Post date:** [October 23, 2015, 10:39am UTC](https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177/4 "2015-10-23T10:39:31Z")

</div>

To Main Actor A add two empty Actors B and C in that positions. B-s position will be A-s local position + vector(38,60,12) and C-s Position will be A-s local position + vector(38,15,12). Actor has default function getActorLocation and this returns global position of Actor. So add 2 public functions to A.

1. GetPositionOfB- this returns getActorlocation B
2. GetPositionOfC- this returns getActorLocation C

---

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [October 23, 2015, 1:42pm UTC](https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177/5 "2015-10-23T13:42:53Z")

</div>

Then you can simple use a “Get Relative Location” (Highlight the root object of this BP first) and you’ll be fine 🙂

---

<div class="post-metadata">

**Author:** ![samdax](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@samdax](https://forums.unrealengine.com/u/samdax)\
**Post date:** [November 29, 2018, 9:20am UTC](https://forums.unrealengine.com/t/how-to-use-local-space-coordinates/336177/6 "2018-11-29T09:20:52Z")

</div>

I found this solution to move an actor locally, using vectors (fordward, up…)

 ![260883-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/9/4295f10efda9b0f42a3bc45c3e1dad5c1b78e51b.jpeg)
