Released a new version of pathfindax. Do note that alot has changed in this version and as such it is not compatible with older versions at all.
The most exciting new feature are dynamic potential fields which will make dynamic pathfinding possible:
Here all agents try to keep some distance from each other. All through the magic of potential fields.
So how does this works? What the agents basically do is go to the tile that has less potential than the current tile. There are 2 different type of potential fields in play here, a potential field for the path to the goal and a 'dynamic' potential field for avoiding other agents. The agents themselves add values to the dynamic potential fields thus raising the values around the position of an agent. When calculating the heading the values of these fields are summed thus creating agent behavior that will both try go to the goal and try to avoid other agents.
By playing with the values you add to the potential field different kind of behavior can be created.