Vixen
02b45cc4
csharp
public struct NavMesh.NeighbourEnumerator

Walks a polygon's neighbours without allocating.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Interior neighbours first, then the links across tile borders. A polygon has at most six of the first and, in a mesh whose tiles disagree about where their border vertices are, a handful of the second.

Fields and properties (1)

Methods (2)

  • public NavMesh.NeighbourEnumerator GetEnumerator()

    So that this can be used in a foreach.

  • public bool MoveNext()

    Moves to the next neighbour.

Used by (1)

  • NavMeshVixen.Navigation