# Get a location along a vector.

**URL:** <https://forums.unrealengine.com/t/get-a-location-along-a-vector/482961>\
**Category:** Community & Industry Discussion\
**Tags:** math, offset, distance, unreal-engine, vector, local, question\
**Created:** [May 5, 2021, 10:31pm UTC](https://forums.unrealengine.com/t/get-a-location-along-a-vector/482961 "2021-05-05T22:31:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AleMarcati](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alemarcati/32/1139690_2.png) [@AleMarcati](https://forums.unrealengine.com/u/AleMarcati)\
**Post date:** [May 5, 2021, 10:31pm UTC](https://forums.unrealengine.com/t/get-a-location-along-a-vector/482961/1 "2021-05-05T22:31:20Z")

</div>

I have a vector _V1_, and a distance _d_. I want to get a new location _V2_ that is away from _V1_ by distance _d_ along the direction of V1.  
(all this in 3D space).

I can’t figure out the math or how to do that in the blueprints. Would really appreciate some help.

---

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [May 5, 2021, 11:02pm UTC](https://forums.unrealengine.com/t/get-a-location-along-a-vector/482961/2 "2021-05-05T23:02:09Z")

</div>

There’s something missing from the question, because you need both an original location to move away from _and_ a direction in which to move. It would seem that this is what’s tripping you up.

Then it is fairly straightforward. Take the unit vector of the direction vector, i.e. the version of it that has direction but a length of 1, multiply that by the length _d_ - this gives you the direction and distance to move - then add that to the original location.

 ![338081-vector-distance-from-vector.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/a/60a05b9ab777043c37f7a4fd5e2f0bf474881a83.png)

---

<div class="post-metadata">

**Author:** ![AleMarcati](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alemarcati/32/1139690_2.png) [@AleMarcati](https://forums.unrealengine.com/u/AleMarcati)\
**Post date:** [May 6, 2021, 12:42am UTC](https://forums.unrealengine.com/t/get-a-location-along-a-vector/482961/3 "2021-05-06T00:42:28Z")

</div>

Thanks for answering! This will help me a lot, I think.
