# Setting location differ between relative and world

**URL:** <https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773>\
**Category:** Rendering\
**Tags:** relative-location, offset, unreal-engine, world-location, question, Blueprint\
**Created:** [July 6, 2017, 4:59pm UTC](https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773 "2017-07-06T16:59:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cc8cacf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cc8cacf](https://forums.unrealengine.com/u/anonymous_user_7cc8cacf)\
**Post date:** [July 6, 2017, 4:59pm UTC](https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773/1 "2017-07-06T16:59:46Z")

</div>

I’m trying to make an actor follow my player’s hand, essentially every tick, I get the difference between the location of the hand at the end of the last tick and its current location, then add that to the current location of the following actor. This works perfect when using the world location and setting world location, however, I need to use relative location and set relative location. When doing this I find that the amount that the follow actor moves is greatly different for some reason compared to using world location? I’m assuming the scales in my blueprint’s hierarchy are to blame? Is there a way to fix/ignore this so I have the same movement as when using world location??

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [July 6, 2017, 6:08pm UTC](https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773/2 "2017-07-06T18:08:50Z")

</div>

did you try attachments to sockets?

> **[SkeletalMeshSockets](https://docs.unrealengine.com/4.27/en-US/WorkingWithContent/Types/SkeletalMeshes/Sockets/)**
>
> Locators that can be added to SkeletalMeshes to use as attachment points for weapons, effects, and more.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cc8cacf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cc8cacf](https://forums.unrealengine.com/u/anonymous_user_7cc8cacf)\
**Post date:** [July 6, 2017, 6:13pm UTC](https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773/3 "2017-07-06T18:13:38Z")

</div>

Im specifically avoiding attachment, the system Im building is like a slider, but in 3d, so I can’t attach it because I need the actor to stay where it is and have just the slider/arms on the actor move

---

<div class="post-metadata">

**Author:** ![redbox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@redbox](https://forums.unrealengine.com/u/redbox)\
**Post date:** [July 6, 2017, 6:28pm UTC](https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773/4 "2017-07-06T18:28:59Z")

</div>

you can’t use relative location for actor that is not a part of actor you want it to be relative to. in usual case actor is child of the world, so world location is like relative to world. do you understand? you need to add actor as a component to another actor, to make it relative. in other case you can set only world location, because actor is relative to world.

but maybe you can try to attach it to another actor, and use relative offset to simulate that sliding.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7cc8cacf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7cc8cacf](https://forums.unrealengine.com/u/anonymous_user_7cc8cacf)\
**Post date:** [July 6, 2017, 6:42pm UTC](https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773/5 "2017-07-06T18:42:55Z")

</div>

I described my problem a bit inaccurate to attempt to simplify, my “follow actor” is actually a component of a actor, I want this component/arm to follow my hand, not the actual actor. I’m trying to set this component’s relative location

---

<div class="post-metadata">

**Author:** ![Donut5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Donut5](https://forums.unrealengine.com/u/Donut5)\
**Post date:** [July 6, 2018, 8:37pm UTC](https://forums.unrealengine.com/t/setting-location-differ-between-relative-and-world/399773/6 "2018-07-06T20:37:56Z")

</div>

Having the same issue, mostly because simulating physics detaches the actor in question.
