# Unsure of how to fix first person walking

**URL:** <https://forums.unrealengine.com/t/unsure-of-how-to-fix-first-person-walking/387145>\
**Category:** C++\
**Tags:** walking, unreal-engine, CPP, question\
**Created:** [March 6, 2017, 10:52pm UTC](https://forums.unrealengine.com/t/unsure-of-how-to-fix-first-person-walking/387145 "2017-03-06T22:52:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_835a4cd3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_835a4cd3](https://forums.unrealengine.com/u/anonymous_user_835a4cd3)\
**Post date:** [March 6, 2017, 10:52pm UTC](https://forums.unrealengine.com/t/unsure-of-how-to-fix-first-person-walking/387145/1 "2017-03-06T22:52:24Z")

</div>

Recently I decided to try out UE4 to make a small game which includes first person walking. I followed this tutorial:  
([https://docs.unrealengine.com/latest/INT/Programming/Tutorials/FirstPersonShooter/2/3/index.html](https://docs.unrealengine.com/latest/INT/Programming/Tutorials/FirstPersonShooter/2/3/index.html))  
to see if I could recreate first person walking in my game. I followed the steps correctly and I got WASD movement working, but I noticed a small “bug” where the more I look up or down, the slower my characters moves. As I mentioned above, I am still fairly new to UE4 so I am not sure of a fix to this. If you could, try to follow the steps in the link and see if you get the same results as me. If you can find a fix, posting below would be very helpful, and if this odd “bug” does not happen to you, telling me below would be helpful aswell, thanks.

---

<div class="post-metadata">

**Author:** ![SteffM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SteffM](https://forums.unrealengine.com/u/SteffM)\
**Post date:** [March 7, 2017, 12:14am UTC](https://forums.unrealengine.com/t/unsure-of-how-to-fix-first-person-walking/387145/2 "2017-03-07T00:14:59Z")

</div>

Sounds like you use the complete Forward Vector of your control rotation, this also include the look up rotation but for the forward movement you just need the left/right rotation. Do you use this code snippet for your forward movement, because the last part “.GetScaledAxis” is important.

```
FVector Direction = FRotationMatrix(Controller->GetControlRotation()).GetScaledAxis(EAxis::X);
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_835a4cd3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_835a4cd3](https://forums.unrealengine.com/u/anonymous_user_835a4cd3)\
**Post date:** [March 9, 2017, 12:52am UTC](https://forums.unrealengine.com/t/unsure-of-how-to-fix-first-person-walking/387145/3 "2017-03-09T00:52:42Z")

</div>

Yeah I use that, Im not too sure what it does either, like I said Im only copying this code off of the tutorial site to educate myself with it later
