Hello everyone,
I’m working on an animation using root motion (using Kubold’s Movement Anim Set Pro) and I want to move my character in the direction of the controller, to achieve this I have first to set the start angle (in degrees) of my movement so that I can turn and start the movement loop with the speed.
This is my setup for the Animation Start: LocomotionStart
This is my anim blueprint: AnimBP
And this is how I’m getting the angle between two vectors, in this case the Actor’s forward vector and the control rotation forward vector (note that I’m also getting the direction with a cross product): AngleBetweenVectors
Now the problem here is that my player is turning a slight amount less than the angle calculated, this could be my LocomotionStart setup or it could be the angle, I’m leaning towards the second because my angle never returns 180 degrees when facing backwards, and every time I walk and I stop I get some weird behavior, like when aiming forward (I expect a 0 degree angle) I get 24 degrees. Screenshot of the issue
I’m out of ideas, I tried using Find Look at Rotation
but I barely understand how it works.