How would i find the player direction of the rotation, Either clockwise or counterclockwise, I’m trying to create a system to have the feet orient by playing an animation, every 90 degrees, and also depending on the rotation direction, But i don’t know how to find the rotation direction. How would i find such things?
I’m not quite sure which one you want but for example if you’d want to get the rotation of your character you simply have to reference it somewhere (or if this script is located within your character blueprint then you can even skip this) take the result (or just search plain if it’s within the character blueprint) and search for “Get world rotation”. Depending on where you call it, it might have the name “Get actor rotation” or something like that.
If you only need one rotation (which is what I assume you mean by direction of rotation) you can use the “Break Rot” node which provides you with 3 floats for pitch, roll and yawn. You can use the one you need to get where the character is facing at that moment.
No, actually, I was looking for a something that would detect whether or not, the player is currently rotating the player to the right or to the left, I actually found out you can find this by, getting the axis value of the mouse x,
This would be useful for, finding out which animation should be played, turn left or turn right, based on the turning input from the mouse value.
Ah! Alright. Fair enough
Your problem is solved. That’s what counts!