Download

Feeding variables to blendspace to make character strafe

Hello,

I made a 2D blendspace that feeds off of two variables called Speed (current speed of the character [0;600]) and Direction (based of this it calculates which animation to play {if -180 strafe left etc}) here is the setup:

3db9773c3f.jpg

I tried feeding the current rotation of the mesh (because I rotate the mesh to the mouse position) to the animation blendspace in my animation blueprint. But it does not work, because whenever I face for example 90 for the Yaw, then it’s gonna play Forward animation only. My question is where to find that direction to make it work?