I’m trying to create locomotion using root motion. But I have a problem here.
I made 4 animations, one for each direction. I created a blendspace out of them, and assigned WASD keys to control it. Character is also always facing it’s target, I’m doing it by using Find Look at Rotation, and SetActorRotation each tick. Only changing the Z axis.
So what I expect. If I press forward, character should go towards it’s target, and once it passes it, it should rotate 180 degrees, to keep facing it’s target. And thus Forward button should move character in that direction. alwasy TOWARDS target. And I expect this as normal behaviour for root motion animations, because I though they’re supposed to work relative to current pose. So like if in animation root bone moves forward relative to character pose, it should always move that way in game, right?
And if I press button Move Right, it should start circling around it’s target.
But what I get looks like root motion is always applied in world space. So once it passes the target and turns 180 degrees, Forward button keeps moving it BACKWARDS away from target, in same direction as it was moving before, in world space.
What am I doing wrong here? Thanks