Polarith AI
1.8

◆ ComputePosition()

override Vector3 ComputePosition ( )
virtual

Overwritten method to build up a FormationLine, i.e., placing agents in a line, by computing the AIMFormation.TargetPosition of each agent.

Units are placed equidistantly on a line with Formation.Spacing as distance between them. This method computes only the position of a single agent with respect to the whole formation.

Implements Formation.

Imprint