Blendspace doens't have a problem, but the direction calculation is weird


I’m controlling my pawn’s rotation with above blueprint.


And i set direction of my animation with this logic.

But , when i played, the character didn’t move at all and just vibrated at the start point.
Anyone can figure out this problem?