Hi everyone,
I want to setup an 8 direction locomotion system for the player. My player is always rotated to the enemy (when it’s close enough, if not close, it will orientate to movement), and I don’t know how to calculate the side input value for my Blend Space (side input for when moving sideways in relation to the rotation of the player).
To give you context, this is my Blend Space:
This is my animation blueprint event graph:
I’m using the dot product of the velocity vector and the rotation vector on X, and it works pretty well for the forward input, but I can’t figure out how to calculate the sideways vector.
This is a small video of how it’s working currently:
I want to achieve the movement between the 0 and 90º cone shown in the video. I thought maybe doing the cross product of the velocity vector and the rotation vector would help me, but I haven’t found how to use it.
I hope I made myself clear,
Thank you!