A* Pathfinding Project

RichAI Agent repathing and including the last corner, causing agent to turn and walk back. This cycle then repeats a few times before the agent continues on their way


#1

The example I’m goigng to try to describe happens often around the level and I’m unsure as to why. I’ve been tweaking the RichAI settings for a few weeks to try to get more ‘life-like’ behaviour and in general it’s worked, bar this issue.

Explanation:
The agent will walk past a corner/ nextPathPoint and just after passing it, the RichAI system will re-path again, updating but using the previous point just passed, thus the agent turns and walks back (see images). This cycle happens anywhere between 1 - 4/5 times, sometimes even more. In the past the agents could get stuck indefinitely, but the adjustments have remedied that.

01

02

03

06

04

05

06

Settings:
I’ve tried many variants of the PathAI/ RichAI settings. The image below shows the current config.