How to Calculate the Direction of a Character

I have been having a hard time with this recently, but anyways here is my question.
How do I get the direction of the character with blueprints so that it can be used in this blendspace you see in the picture included. Any help would be appreciated

From,
Fellow Developer

Hey, for this you can use CalculateDirection node.

Are you able to show me an example because when I implement it, it doesn’t work and the character plays the animation for the 0 degrees animation in the middle of the blendspace. Hope that made sense.

Example below.

Sorry, how did you get the player character node (Is it in the character blueprint or the animation event graph?)

This is your pawn reference. You can create in Anim Event Graph.