AI Follow - AI does not move legs or arms. Floats in idle Pose

This is how I solved the issue without sacrificing any animation and state machine.

The problem:

The problem lies with IsAccelerating. When the AI is in control, there’s no input vector, which means, GetCurrentAcceleration is always zero, and therefore, IsAccelerating is always false, causing all the issues

How to solve it:

Use a differente approach to check is the character is accelerating or not. A simple method is to compare the current speed with an old one. So:

First remove the IsAccelerating in the AnimGraph:

Second, check the current speed with the previous one, and set the IsAccelerating variable:

This should solve all problems.

2 Likes