Polarith AI
1.8

◆ OnPathChange()

override void OnPathChange ( )
protectedvirtual

Is called whenever the path is updated.

If so, the internal path points are updated. Furthermore, the TargetIndex is set to 1 if the distance between the first point of the path and the Transform.position is smaller than the set TargetRadius.

Note, if the current position matches the first path point then the first point will be skipped.

Reimplemented from AIMFollowPath.

Imprint