Polarith AI
1.8

◆ SetPoints()

void SetPoints ( List< Vector3 >  points)

Sets a new point list for the path, whereby it assumes that the points are in global coordinates.

After setting a new path AIMPathConnector.PathChanged might be called in order to update other behaviours using AIMPathConnector.GetPoints like AIMFollowWaypoints.

Note: Setting new points cause an re-adaption of the internally stored waypoint data. So avoid calling this method too frequently in order to save performance.

Parameters
pointsList containing points in global coordinates.
Exceptions
NullReferenceExceptionIf points is null.
Imprint