C# Class TerrainDisplay.Recast.NavMeshTile

Managed version of dtMeshTile. Usage of members is not quite self-explanatory due to a high level of compression.
Show file Open project: WCell/WCell-Terrain Class Usage Examples

Public Properties

Property Type Description
DetailPolygons TerrainDisplay.Recast.NavMeshPolyDetail[]
DetailedTriangles TerrainDisplay.Recast.NavMeshDetailTriIndex[]
DetailedVertices System.Vector3[]
Flags uint
Links TerrainDisplay.Recast.NavMeshPolyLink[]
NextX int
OffMeshConnections TerrainDisplay.Recast.NavOffMeshConnection[]
Polygons TerrainDisplay.Recast.NavMeshPolygon[]
Vertices System.Vector3[]
X int

Property Details

DetailPolygons public property

The entire tile in byte form (used for serialization/deserialization) The tree is needed for fast execution of the query* functions in big tiles, which find polygons without a local context. Those functions are needed for different things (eg findNearestPoly), but not for pathfinding. Indexes the DetailedVertices and DetailedTriangles by the Tile's Polygons
public NavMeshPolyDetail[],TerrainDisplay.Recast DetailPolygons
return TerrainDisplay.Recast.NavMeshPolyDetail[]

DetailedTriangles public property

Eye candy (colored version of the original polygons?)
public NavMeshDetailTriIndex[],TerrainDisplay.Recast DetailedTriangles
return TerrainDisplay.Recast.NavMeshDetailTriIndex[]

DetailedVertices public property

Eye candy
public Vector3[],System DetailedVertices
return System.Vector3[]

Flags public property

Tile flags, see dtTileFlags
public uint Flags
return uint

Links public property

Links to other tiles
public NavMeshPolyLink[],TerrainDisplay.Recast Links
return TerrainDisplay.Recast.NavMeshPolyLink[]

NextX public property

The coordinates of the next Tile within the mesh
public int NextX
return int

OffMeshConnections public property

Some people might refer to these as "portals": They allow agents to jump between disconnected tiles. See: http://digestingduck.blogspot.com/2010/01/off-mesh-connection-progress-pt-3.html
public NavOffMeshConnection[],TerrainDisplay.Recast OffMeshConnections
return TerrainDisplay.Recast.NavOffMeshConnection[]

Polygons public property

Visible polygons, spanned between sets of vertices
public NavMeshPolygon[],TerrainDisplay.Recast Polygons
return TerrainDisplay.Recast.NavMeshPolygon[]

Vertices public property

The vertices of which this tile consists
public Vector3[],System Vertices
return System.Vector3[]

X public property

The coordinates of the Tile within the mesh
public int X
return int