RichieQ - 2019-06-09

As you already mentioned, this flocking algorithm you're talking about is usually implemented in games where units can move freely. What I thought about is setting a different target tile for each unit such that their relative position remains the same. Problem with that solution is that units cannot be ordered to meet at a certain point: Think about selecting units in the field and a new unit at the base; when you order them to move to one tile the unit from the base will keep its relative position. I think some kind of heuristic is necessary when to obey to the formation and when to concentrate at one spot. Maybe you have an idea?

You also mentioned a unified unit speed in groups: This was implemented some years ago but felt quite unnatural. The speed of all units was the speed of the slowest unit. Consider a group of siege tanks and raider trikes. The trikes were moving at the same speed as the siege tanks rendering near useless as they lost their main advantage: Quickly approaching the enemy. The speed was even more reduced when one of the tanks was seriously damaged.