Vixen
02b45cc4
csharp
public struct NavMeshDetailData

Where one polygon's height detail is, in the tile's detail arrays.

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

Remarks

The triangles index the polygon's own vertices and the detail vertices at once: an index below the polygon's vertex count names one of its corners, and anything at or above it names DetailVertices offset by FirstVertex.

The corners are not repeated because a repeated corner is a corner that can disagree with itself. Two polygons meeting along an edge take its endpoints from the same place, so their detail surfaces meet there exactly; a detail mesh with its own copies would meet there only as accurately as the copies were made.

Fields and properties (4)

  • public int FirstVertex

    Where this polygon's added vertices start in DetailVertices.

  • public int VertexCount

    How many it added, over and above its own corners.

  • public int FirstTriangle

    Where its triangles start in DetailTriangles, in triangles.

  • public int TriangleCount

    How many it has.

Used by (9)

  • DetailMeshTestsVixen.Navigation.Tests
  • NavMeshVixen.Navigation
  • NavMeshBakerVixen.Navigation
  • NavMeshDebugDrawVixen.Navigation
  • NavMeshDebugDrawTestsVixen.Navigation.Tests
  • NavMeshTileVixen.Navigation
  • NavMeshTileDataVixen.Navigation
  • Vixen_Navigation_NavMeshDetailDataSerializerVixen.Navigation
  • Vixen_Navigation_NavMeshTileDataSerializerVixen.Navigation