Animation solution

Here’s how I solved the challenge:

private void SetForwardSpeed() {
float forwardSpeed = navMeshAgent.velocity.magnitude;
animator.SetFloat(“forwardSpeed”, forwardSpeed);

Is there any problem with how this in implemented? It’s quite different from Rick’s solution. Wondering if I’m missing something. It seems to work OK.

Nope, if it works, then it should be fine. There are many paths to the correct result.