About
This AI formation pathfinding prototype uses a Leader-Follower based group system, where a leader unit of the group handles high-level overall movement and determines the current formation type depending on the game scenarios, and the follower units adjust their position and spacing relative to the leader according to the given formation and surrounding obstacles. This ensures that all units move together in a platoon formation, and can still react to obstacles and terrain individually and dynamically.

Group Joining & Leaving, Circle Formation
Showcase

Formation.cs

CircleFormation.cs

Formation Switching

Convoy Formation