Vixen
02b45cc4
csharp
public readonly record struct NavMesh.Neighbour

What a polygon is next to, and across which part of which of its edges.

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

Fields and properties (5)

  • public NavPolyRef Reference

    The neighbouring polygon.

  • public int Edge

    The edge of the polygon being asked about.

  • public float Min

    Where the shared part of that edge starts, as a parameter along it.

  • public float Max

    Where it ends. An interior neighbour shares the whole edge, so 0 and 1.

  • public bool IsOffMesh

    Whether it is reached by using a connection rather than by crossing an edge, in which case Edge is NoEdge and there is nothing to walk across.

Methods (1)

  • public Neighbour(NavPolyRef Reference, int Edge, float Min, float Max, bool IsOffMesh = false)

    What a polygon is next to, and across which part of which of its edges.

Used by (3)

  • NavMeshDebugDrawVixen.Navigation
  • NavMeshQueryVixen.Navigation
  • NeighbourEnumeratorVixen.Navigation