# Rotate diagonal leg movement

**URL:** <https://forums.unrealengine.com/t/rotate-diagonal-leg-movement/621005>\
**Category:** Character & Animation\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [August 4, 2022, 4:10am UTC](https://forums.unrealengine.com/t/rotate-diagonal-leg-movement/621005 "2022-08-04T04:10:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukaoooo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lukaoooo](https://forums.unrealengine.com/u/lukaoooo)\
**Post date:** [August 4, 2022, 4:10am UTC](https://forums.unrealengine.com/t/rotate-diagonal-leg-movement/621005/1 "2022-08-04T04:10:24Z")

</div>

how to rotate legs to the direction you are walking forward? I want that when he is walking diagonally his legs rotate to the direction, for example when I press the W and A key at the same time

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/3/7e37003a68be84a358908b890cee55ee8d4959ba.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/3/7e37003a68be84a358908b890cee55ee8d4959ba.mp4)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [August 4, 2022, 10:27am UTC](https://forums.unrealengine.com/t/rotate-diagonal-leg-movement/621005/2 "2022-08-04T10:27:35Z")

</div>

Hey @lukaoooo!

What you are going to need to pull this off is most likely animation blendspaces. Here is a great non-Epic affiliated video that covers how to do that:

> [Introducing: the Blendspace | Adv. Anim Application [UE4]](https://youtu.be/6qVwfo0ITdk)

I hope the above solution is what you are looking for!
