Getting Direction based on Input
I need help with calculating the YAW to rotate my character to based on which keys are currently pressed.
I have a character (Orient rotation to movement) that does a roll animation when pressing Left Shift.
In the code for the LeftShit action Pressed, I need to check which directional keys are pressed at the time of Left Shift being pressed.
I know how to check if a key is pressed, but I don't know what to do after that. How can I get the Yaw that I need to turn my character to before playing the rolling animation?
Here are some screenshots that help to explain what I'm after:
If somethings not clear, I can post a video or something to better try and explain.
You can get the Yaw value like this.
Forward and Right are my axis input names.
answered Dec 28 '18 at 08:28 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here