dtMeshTile

Defines a navigation mesh tile.

Windows
MacOS
Linux

Warnings

  • Tiles returned by a dtNavMesh object are not guarenteed to be populated. For example: The tile at a location might not have been loaded yet, or may have been removed. In this case, pointers will be null. So if in doubt, check the polygon count in the tile's header to determine if a tile has polygons defined.

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMesh.h

Include

#include "Detour/DetourNavMesh.h"

Syntax

struct dtMeshTile

Remarks

Defines a navigation mesh tile.

Tiles generally only exist within the context of a dtNavMesh object.

Some tile content is optional. For example, a tile may not contain any off-mesh connections. In this case the associated pointer will be null.

If a detail mesh exists it will share vertices with the base polygon mesh. Only the vertices unique to the detail mesh will be stored in [detailVerts](API\Runtime\Navmesh\Detour\dtMeshTile\detailVerts).

Tiles returned by a dtNavMesh object are not guarenteed to be populated. For example: The tile at a location might not have been loaded yet, or may have been removed. In this case, pointers will be null. So if in doubt, check the polygon count in the tile's header to determine if a tile has polygons defined.

Variables

Name Description

Public variable

dtBVNode *

 

bvTree

The tile bounding volume nodes.

Public variable

dtCluster *

 

clusters

Cluster data.

Public variable

unsigned char &...

 

data

The tile data. (Not directly accessed under normal situations.)

Public variable

int

 

dataSize

Size of the tile data.

Public variable

dtPolyDetail &#...

 

detailMeshes

The tile's detail sub-meshes. [Size: [dtMeshHeader::detailMeshCount](API\Runtime\Navmesh\Detour\dtMeshHeader\detailMeshCount)].

Public variable

unsigned char &...

 

detailTris

The detail mesh's triangles. [(vertA, vertB, vertC) * [dtMeshHeader::detailTriCount](API\Runtime\Navmesh\Detour\dtMeshHeader\detailTriCount)].

Public variable

float *

 

detailVerts

The detail mesh's unique vertices. [(x, y, z) * [dtMeshHeader::detailVertCount](API\Runtime\Navmesh\Detour\dtMeshHeader\detailVertCount)].

Public variable

unsigned int

 

dynamicFreeListC

Index of the next free dynamic link.

Public variable

unsigned int

 

dynamicFreeListO

Index of the next free dynamic link.

Public variable

dtChunkArray< d...

 

dynamicLinksC

Dynamic links array (indices starting from DT_CLINK_FIRST)

Public variable

dtChunkArray< d...

 

dynamicLinksO

Dynamic links array (indices starting from [dtMeshHeader::maxLinkCount](API\Runtime\Navmesh\Detour\dtMeshHeader\maxLinkCount))

Public variable

int

 

flags

Tile flags. (See: dtTileFlags)

Public variable

dtMeshHeader &#...

 

header

The tile header.

Public variable

dtLink *

 

links

The tile links. [Size: [dtMeshHeader::maxLinkCount](API\Runtime\Navmesh\Detour\dtMeshHeader\maxLinkCount)].

Public variable

unsigned int

 

linksFreeList

Index to the next free link.

Public variable

dtMeshTile *...

 

next

The next free tile, or the next tile in the spatial grid.

Public variable

dtOffMeshConnec...

 

offMeshCons

The tile off-mesh connections. [Size: [dtMeshHeader::offMeshConCount](API\Runtime\Navmesh\Detour\dtMeshHeader\offMeshConCount)].

Public variable

dtOffMeshSegmen...

 

offMeshSeg

The tile off-mesh connections. [Size: [dtMeshHeader::offMeshSegConCount](API\Runtime\Navmesh\Detour\dtMeshHeader\offMeshSegConCount)].

Public variable

unsigned short ...

 

polyClusters

Cluster Id for each ground type polygon [Size: [dtMeshHeader::polyCount](API\Runtime\Navmesh\Detour\dtMeshHeader\polyCount)].

Public variable

dtPoly *

 

polys

The tile polygons. [Size: [dtMeshHeader::polyCount](API\Runtime\Navmesh\Detour\dtMeshHeader\polyCount)].

Public variable

unsigned int

 

salt

Counter describing modifications to the tile.

Public variable

float *

 

verts

The tile vertices. [Size: [dtMeshHeader::vertCount](API\Runtime\Navmesh\Detour\dtMeshHeader\vertCount)].

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss