I’m using the 3rd person template, with true first person type camera placement which is rooted to the head of my character.
Yaw control is on on the camera. Orient is off on the character movement.
I set up my blendspace with strafing sideways and walking / jogging backwards.
Blendspace direction is set to -180 and 180.
When I walk backwards though, my walk backwards animation is very jittery. I noticed that if I print the direction set up in my anim bp that it jumps between -180 and 180 almost every tick.
Animation almost looks like it’s alternating between walk forward and walk backwards everytime the direction changes in the print string.
The transition rule between forwards/backward is this, you just swap the signs depending on the transition.
In my case, backwards is a 2D blend-space with just the speed. You can use a blend-space with angles, but it’s generally better to leave this “isolated” and add more state machines for the 45deg angles instead. Blendspcaes tend to error out the feet when between animations (at 50% strength between back and 45deg back for instance).
When you press backward, the “controller direction” will flip flop between -180 and 180, which causes the “animation direction” to flip between walking back right and back left. You can solve this by feeding all “controller direction” values from -170 to 170 into the “animation direction”, but anything outside this range should be converted to just 180 before feeding them into the “animation direction”.
When you using “UseControllerRotationYaw”, to set it be true.
There is one more setting you should do,
in “CharMovecomp”, “RotationRate”, the Z rate should be 0 ,
My situation be like,when walking backward, the whole character keeping rotating because of the high rate of Z.