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.

1 Like

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

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms