A random path to the point

I use followerEntity, how do I get bots not to take the shortest path? There are 10 bots and one point, each bot has to go its own way to that point.

Hi

Pathfinding will always find the shortest path, but you can change what “shortest” means.

There are no algorithms for things like finding the n shortest paths (as is often done in e.g. google maps when searching for routes), but you can mark different regions with different tags, and then each agent can have different costs for traversing those tags. This way, different agents will have slightly different ideas of what “shortest path” means.
See Working with tags - A* Pathfinding Project

1 Like