Polarith AI
1.8

◆ ComputePosition()

override Vector3 ComputePosition ( )
virtual

Overwritten method to build up a FormationCircle, i.e., placing agents as a circle by computing the AIMFormation.TargetPosition of each agent.

The units are placed equidistantly on circles with Formation.Spacing as arc length distance between them. The outer layer may be sparse, since there are probably not enough units. This method computes only the position of a single agent with respect to the whole formation.

Implements Formation.

Imprint