how to get direction for use in blendspace?

i have a fairly simple question to which im struggling to find the answer to.

i bought some assets and learned how this blendspace that was included has a clever way of blending animations, a method i want to adopt.

however how do i get the “direction” value from my character movement component to use for my blendspace?

im still a novice, any and all help is appreciated.

Hey @Oomsdvc!

So what do you mean by “Get”?

Where are you doing this? There is the Animgraph, where you will need to pull in the direction and speed variables and plug them into this node- or the Event Graph, where you have most of the typical style of blueprints?

If you have any questions like this I HIGHLY recommend starting a third-person project template supplied with the engine, and looking at the animation graph for the player for reference!
:slight_smile:

i was looking for something like “calculate direction” node inside character blueprint to get information i can then Set as a float for my ABP to use when hooking into my character blueprint.

There is a CalculateDirection node you can use in the anim bp event graph. Just need to feed it the rotation and velocity from your pawn reference.

1 Like

i did it inside the character’s blueprint. is there any downsides to that?

Should be fine. May be marginally more efficient to do in anim bp since the CalculateDirection function is part of anim library, but probably not enough to even notice.

good to know, thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.