What’s the right way to limit the pathfinding to a specific area?
In my games there is an “exploration” mode and a “combat” mode.
The game switches to combat mode when the players enters a combat zone.
At that moment, all units should use a different pathfinding: one that is restricted to the zone of the combat. When the combat is finished units switch back to the pathfinding for exploration.
The combat zones are all spherical.
How should I set this up?