engine
 
载入中...
搜索中...
未找到
Public 属性 | 所有成员列表
dtMeshTile结构体 参考

Defines a navigation mesh tile. 更多...

#include <DetourNavMesh.h>

Public 属性

dtBVNode * bvTree
 The tile bounding volume nodes. 更多...
 
unsigned char * data
 The tile data. (Not directly accessed under normal situations.)
 
int dataSize
 Size of the tile data.
 
dtPolyDetail * detailMeshes
 The tile's detail sub-meshes. [Size: dtMeshHeader::detailMeshCount]
 
unsigned char * detailTris
 The detail mesh's triangles. [(vertA, vertB, vertC) * dtMeshHeader::detailTriCount]
 
float * detailVerts
 The detail mesh's unique vertices. [(x, y, z) * dtMeshHeader::detailVertCount]
 
unsigned int dynamicFreeListO
 Index of the next free dynamic link
 
dtChunkArray< dtLink > dynamicLinksO
 Dynamic links array (indices starting from dtMeshHeader::maxLinkCount)
 
int flags
 Tile flags. (See: dtTileFlags)
 
dtMeshHeader * header
 The tile header.
 
dtLink * links
 The tile links. [Size: dtMeshHeader::maxLinkCount]
 
unsigned int linksFreeList
 Index to the next free link.
 
dtMeshTile * next
 The next free tile, or the next tile in the spatial grid.
 
dtOffMeshConnection * offMeshCons
 The tile off-mesh connections. [Size: dtMeshHeader::offMeshConCount]
 
dtPoly * polys
 The tile polygons. [Size: dtMeshHeader::polyCount]
 
unsigned int salt
 Counter describing modifications to the tile.
 
float * verts
 The tile vertices. [Size: dtMeshHeader::vertCount]
 

详细描述

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.

警告
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.

类成员变量说明

◆ bvTree

dtBVNode* dtMeshTile::bvTree

The tile bounding volume nodes.

[Size: dtMeshHeader::bvNodeCount] (Will be null if bounding volumes are disabled.)


该结构体的文档由以下文件生成: