🎽Formations
List of formations
Here you can find names and behaviours for each provided formation.
Customisation
And you can always add a new one by implementing IFormation.
The interface is very simple, you get a number of units to position and then formation must return positions relative to Vector3.zero. Translating positions to world space is done by FormationPositioner utility class, which is used by other components.
public interface IFormation
{
List<Vector3> GetPositions(int unitCount);
}If unit count and returned list size do not match, errors are expected.
Last updated








