Character Gliding at the end of Path

I’m using a Recast Graph and RichAI for a simple patrolling AI…

At the end of the path it sort of glides even though it should just stop…and sometimes when idle it jitters little bit left and right but it stops when I disable richAI…Maybe because it’s calculating new paths?

Here is the video: https://youtu.be/42xE6NIojyE

Here is the simple Patrolling Logic:

And here is the Rich AI and Recast Graph:

Is there some example on how to do Patrolling or Scene with NPCs so I can see proper way on how to handle all of it

Thanks

Hi

It looks like your animation stops before the agent has actually slowed down. I recommend using the ai.velocity property to guide the animation.

There’s an included “Patrol” script which you can have a look at. Though this does not handle animation.

In v5, I would also recommend trying out the FollowerEntity component instead of the RichAI movement script. It handles some edge cases much better.