Avoidance
Avoidance is one of the core features of navigation. It is used to avoid obstacles and other agents.
It is important to understand that avoidance relies on heuristics and is not a perfect solution. There may be situations where agents will not be able to avoid each other, or they might get stuck in a loop trying to avoid each other. Additionally, it is essential to grasp that avoidance is not a replacement for pathfinding. Instead, it complements pathfinding by helping agents avoid obstacles and other agents while following their path.
Note
A good way to understand the difference between avoidance and pathfinding is to think of pathfinding as a person with a map and avoidance as a person with a flashlight in a dark room. Pathfinding helps you find a way to the destination, while avoidance helps you navigate around obstacles and other agents along the way.