# Hard Time Understanding Vectors

**URL:** <https://forums.unrealengine.com/t/hard-time-understanding-vectors/389110>\
**Category:** Blueprint\
**Tags:** move-component-to, unreal-engine, bug-report, question, Blueprint, vectors\
**Created:** [March 27, 2017, 10:04am UTC](https://forums.unrealengine.com/t/hard-time-understanding-vectors/389110 "2017-03-27T10:04:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xanadron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xanadron](https://forums.unrealengine.com/u/Xanadron)\
**Post date:** [March 27, 2017, 10:04am UTC](https://forums.unrealengine.com/t/hard-time-understanding-vectors/389110/1 "2017-03-27T10:04:40Z")

</div>

To keep it short, i am making a simple vertical wall run and i am using the move component to here. i am using the Impact Normal of the facing wall for the rotation (that works) but for the location i want to use the Impact Point but subtract 30 units (my capsule’s radius) in order to stick the capsule to the wall. This doesn’t work very well because its not always - 30 from the X Vector, as i face another wall rotating 90\*, that begin to apply to the Y… I don’t have big math studies so i am trying to explain the best i can. How can i subtract -30, regardless of the Impact Point’s world location?

Many regards,  
Alex

 ![131792-impact.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/7/6e73df0e16426ed351600d0c5ae26a2269e82c65.png)

---

<div class="post-metadata">

**Author:** ![pulp\_user](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pulp\_user](https://forums.unrealengine.com/u/pulp_user)\
**Post date:** [March 27, 2017, 11:26am UTC](https://forums.unrealengine.com/t/hard-time-understanding-vectors/389110/2 "2017-03-27T11:26:48Z")

</div>

If I understand you correctly you want to set the position 30 units away from the wall you run into? You could use `NewPosition = ImpactPoint - ImpactNormal * 30` for that (or `+ ImpactNormal * 30`, I don’t know off the top of my head if the impact normal faces towards or away from the wall) The ImpactNormal always faces “into” the wall and has length 1, so if you multiply it by 30 you get a vector that points into the wall and has lenght 30)
