I need help with calculating the YAW to rotate my character to based on which keys are currently pressed.
Background:
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.