Documentation

Unity Engine

Download Unity

Unity Engine

normal

Normal of the polygon edge where the query terminates.
Read time 1 minuteLast updated 7 hours ago

Definition

public Vector3 normal { get; set; }

Remarks

The vector points towards the inner side of the last NavMesh polygon that the query traverses.
If the query terminates inside a polygon, and is therefore not blocked by an edge, the normal is Vector3.zero.
Note: None of the query methods returns the normal of the polygon itself.