RichAI velocity not going to zero when at destination

I have my movement animation synced with the agent’s velocity. It looks very odd while they’re waiting at a location for a duration, that their walking animation is played even though the agent is supposed to not be moving.

I’ve debugged the velocity and it goes up to 0.8f while the agent is at the destination, before patrolling some more.

I saw a this thread mentioning something about CloseToDestination = CloseToDestinationMode.Stop

I checked the RichAI class and it seems to be there. I’m wondering why it has no effect

Hi

Velocity definitely shouldn’t be 0.8 when it’s standing still. Are you sure that’s correct?

The velocity may not reach exactly zero due to floating point errors, but it should be close. I’d recommend starting your walking animation if the speed is greater than say 0.1 times the max speed of the agent.