RichAI End Reached Distance Problem


From my understanding “end reached distance” should stop the RichAI agent specified distance away from the destination. When I set the distance to 10 units, the agent stops, but keeps jerking towards the target until he is about 2 units away. I looked at your RichAI implementation and noticed that in this situation OnTargetReached() is called, however the method seems to be empty. Do you know what could be the issue here?

Thank you for your help.


Hm… it is likely because when it recalculates the path, it will move forward for one frame before realising it is close to the target and stop again…
This is quirk in the RichAI implementation which is should improve.

If you want a quick fix, you can check the Update method and do a test for if the agent is closer to the target than X units and just do nothing if that is true.