normal
Normal of the polygon edge where the query terminates.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
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.