Polarith AI
1.8

◆ Validate()

override bool Validate ( )
virtual

Checks the distance of the Position to the nearest edge.

The index for the nearest edge can either be set directly or be computed via Mathv.GetNearestEdge(IList<Vector3>, Vector3, float, int).

Returns
true if the distance from the given Position to the nearest edge is smaller than MaxDistance, false otherwise.

Implements Validator.

Imprint