# How to calculate vector depending on rotation?

**URL:** <https://forums.unrealengine.com/t/how-to-calculate-vector-depending-on-rotation/429825>\
**Category:** Community & Industry Discussion\
**Tags:** moving, rotation, unreal-engine, question\
**Created:** [July 20, 2018, 6:48am UTC](https://forums.unrealengine.com/t/how-to-calculate-vector-depending-on-rotation/429825 "2018-07-20T06:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_67a93bbc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67a93bbc](https://forums.unrealengine.com/u/anonymous_user_67a93bbc)\
**Post date:** [July 20, 2018, 6:48am UTC](https://forums.unrealengine.com/t/how-to-calculate-vector-depending-on-rotation/429825/1 "2018-07-20T06:48:27Z")

</div>

I want to change location of my character depending on it’s rotation so if I go forward it has to move forward as it’s facing. Do I have to manually calculate sines/cosines or is there any method which can help with it?

---

<div class="post-metadata">

**Author:** ![ndelchen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ndelchen](https://forums.unrealengine.com/u/ndelchen)\
**Post date:** [July 20, 2018, 7:45am UTC](https://forums.unrealengine.com/t/how-to-calculate-vector-depending-on-rotation/429825/2 "2018-07-20T07:45:02Z")

</div>

You can use the node “Get Forward Vector”. This will return the vector that you need to move your Actor.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_67a93bbc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_67a93bbc](https://forums.unrealengine.com/u/anonymous_user_67a93bbc)\
**Post date:** [July 20, 2018, 8:12am UTC](https://forums.unrealengine.com/t/how-to-calculate-vector-depending-on-rotation/429825/3 "2018-07-20T08:12:14Z")

</div>

It is exactly what I was asking for, thanks.
