The change of direction can only come from those 2:
- does it behave incorrectly when you multi Velocity by 0, too? If the incorrect behaviour does stem from velocity, ignore its Z component
- get actor forward - does the character rotate when we jump? As that would affect its forward vector. If that’s the case, use world axis instead, just check which way the character is facing.
