# I want to get the value of the direction the player moves

**URL:** <https://forums.unrealengine.com/t/i-want-to-get-the-value-of-the-direction-the-player-moves/416841>\
**Category:** Character & Animation\
**Tags:** rotation, unreal-engine, player, Blueprint, question\
**Created:** [February 9, 2018, 8:19am UTC](https://forums.unrealengine.com/t/i-want-to-get-the-value-of-the-direction-the-player-moves/416841 "2018-02-09T08:19:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PROBO\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PROBO\_1](https://forums.unrealengine.com/u/PROBO_1)\
**Post date:** [February 9, 2018, 8:19am UTC](https://forums.unrealengine.com/t/i-want-to-get-the-value-of-the-direction-the-player-moves/416841/1 "2018-02-09T08:19:48Z")

</div>

Like the title, I want to find the value of the direction the player moves.  
위에 제목처럼 플레이어가 움직이는 방향의 값을 구하고싶습니다.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [February 9, 2018, 8:25am UTC](https://forums.unrealengine.com/t/i-want-to-get-the-value-of-the-direction-the-player-moves/416841/2 "2018-02-09T08:25:37Z")

</div>

in Blueprints… just use the **Get Velocity** node for an actor, or **Get Component Velocity** for an actor component 🙂

This will give you a vector value of the direction the player is moving in. Also, if you use **Vector Length** with it, this will give you a float value… which is speed.

 ![230056-kjlhhljk.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/f/d1f3790ec6b1409e3bcaf10898ce1eca71e18714.jpeg)

 ![230057-dgfghfgh.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/4/1/24182653f4505473aeda6d6f88062c4892064f9a.jpeg)

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [February 9, 2018, 3:33pm UTC](https://forums.unrealengine.com/t/i-want-to-get-the-value-of-the-direction-the-player-moves/416841/3 "2018-02-09T15:33:07Z")

</div>

how about using get forward vector. this will return a normalized vector in the direction the player is facing.

> **[Get Actor Forward Vector](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Utilities/Transformation/GetActorForwardVector/)**
>
> Get Actor Forward Vector

> **[Forward Vector Points in Wrong Direction](https://forums.unrealengine.com/questions/284926/forward-vector-points-in-wrong-direction.html)**
>
> Yes, it’s doing exactly what you want it to do in your nodes. You aren’t projecting the line trace. Really, all you need to do in order to get your current setup to work is from the forward vector, add your trace distance to the X and then plug it...

---

<div class="post-metadata">

**Author:** ![Anatoliooo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/anatoliooo/32/906724_2.png) [@Anatoliooo](https://forums.unrealengine.com/u/Anatoliooo)\
**Post date:** [July 16, 2024, 6:14pm UTC](https://forums.unrealengine.com/t/i-want-to-get-the-value-of-the-direction-the-player-moves/416841/4 "2024-07-16T18:14:08Z")

</div>

Can use ‘Calculate Direction’ in the animation blueprint event graph you can use the Velocity and the Character’s rotation. See image below:

 ![directionUE5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/1/441b9b25399f9083ade302dd9421731195261aea.png)
