'UE4 How to make character face direction of the movement
G'day, I'm new to coding in general and I was wondering if there was a way to make the character face in the direction of movement using blueprint coding, I know about the orient rotation to movement check box but I'm trying to make the character face in the direction they're moving and then when you press a button or use the right analog stick start facing in the direction of the mouse or analog stick, and that doesn't seem possible with the orient rotation to movement activated but does work with it off but now I can't figure out how to orient to movement with coding, btw this is a top-down project
Here is the code that I attempted to make the character orient to rotation movement
This one I got from a video to make the character face the mouse
Solution 1:[1]
You can just check the boolean bUseControllerYaw which is also in Blueprint character. Use control rotation yaw
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Praveen Crypty |