Animation stops completely on hitting wall

So I’m using a blendspace and an animation blueprint to make my player ship tilt in the direction it moves, but when it hits the invisible walls it immediately snaps to the idle position and it looks rough:

I know this is because my blendspace+ABP operates based on the player’s directional velocity, so when it hits the wall the velocity naturally goes to 0 and causes this issue.

Is there a way to keep the velocity while accelerating into a wall so that the animation does not change?

Hey there @Mastatatoe! From a high level, there’s a couple ways to handle this.

You could tie the input directly into tilt instead of velocity, and then you’d always be tilting even when you can’t move in that direction. However this has a few small drawbacks if you need that velocity check for say an “uncontrollable” movement debuff or something similar.

If you wanted to keep the velocity based tilt, then you could store the value as it’s ticking, then slowly rotate back to neutral so the velocity change can’t affect the rotation immediately without you overriding it.

the mesh isnt physically tilting in-world, its based on animations

i just changed weight speed to 5.0 on the blendspace and now it transitions a lot smoother