Download

Calculate direction node allways return 90

I set my blendspace exactly like in documentation tutorial, also set speed and direction variables like there (https://docs.unrealengine.com/en-US/engine/animation/blendspaces/userguide), but calculate direction always return 90, so my character still walking even If I don’t move
What’s wrong? And is there another way to calculate direction?

take a screenshot of the eventgraph for your animation blueprint… you have to use your animation blueprints event graph to get your characters speed and direction

from the update animation event, i do an isvalid node, then go to a calculate direction node… feeding the calculate direction is “try to get pawn owner” which controls a “get velocity” and “get actor rotation” node, both of these plug into calculate direction and the return value of the calculate direction node sets the “direction” variable… then “get velocity” feeds into “vector length” and then sets speed