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

Provides high level information related to a dtMeshTile object. 更多...

#include <DetourNavMesh.h>

Public 属性

float bmax [3]
 The maximum bounds of the tile's AABB. [(x, y, z)]
 
float bmin [3]
 The minimum bounds of the tile's AABB. [(x, y, z)]
 
int bvNodeCount
 The number of bounding volume nodes. (Zero if bounding volumes are disabled.)
 
float bvQuantFactor
 The bounding volume quantization factor. 更多...
 
int detailMeshCount
 The number of sub-meshes in the detail mesh.
 
int detailTriCount
 The number of triangles in the detail mesh.
 
int detailVertCount
 The number of unique vertices in the detail mesh. (In addition to the polygon vertices.)
 
int layer
 The layer of the tile within the dtNavMesh tile grid. (x, y, layer)
 
int magic
 Tile magic number. (Used to identify the data format.)
 
int maxLinkCount
 The number of allocated links.
 
int offMeshBase
 The index of the first polygon which is an point type off-mesh connection.
 
int offMeshConCount
 The number of point type off-mesh connections.
 
int polyCount
 The number of polygons in the tile.
 
unsigned int userId
 The user defined id of the tile.
 
int version
 Tile data format version number.
 
int vertCount
 The number of vertices in the tile.
 
float walkableClimb
 The maximum climb height of the agents using the tile.
 
float walkableHeight
 The height of the agents using the tile.
 
float walkableRadius
 The radius of the agents using the tile.
 
int x
 The x-position of the tile within the dtNavMesh tile grid. (x, y, layer)
 
int y
 The y-position of the tile within the dtNavMesh tile grid. (x, y, layer)
 

详细描述

Provides high level information related to a dtMeshTile object.

类成员变量说明

◆ bvQuantFactor

float dtMeshHeader::bvQuantFactor

The bounding volume quantization factor.

This value is used for converting between world and bounding volume coordinates. For example:

const float cs = 1.0f / tile->header->bvQuantFactor;
const dtBVNode* n = &tile->bvTree[i];
if (n->i >= 0)
{
// This is a leaf node.
float worldMinX = tile->header->bmin[0] + n->bmin[0]*cs;
float worldMinY = tile->header->bmin[0] + n->bmin[1]*cs;
// Etc...
}
Bounding volume node.
Definition: DetourNavMesh.h:247
unsigned short bmin[3]
Minimum bounds of the node's AABB. [(x, y, z)]
Definition: DetourNavMesh.h:248
int i
The node's index. (Negative for escape sequence.)
Definition: DetourNavMesh.h:250

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