engine
 
载入中...
搜索中...
未找到
所有成员列表
dtNavMeshCreateParams结构体 参考

Represents the source data used to build an navigation mesh tile. 更多...

#include <DetourNavMeshBuilder.h>

Public 属性

Polygon Mesh Attributes

Used to create the base navigation graph.

See rcPolyMesh for details related to these attributes.

const unsigned short * verts
 The polygon mesh vertices. [(x, y, z) * vertCount] [Unit: vx]
 
int vertCount
 The number vertices in the polygon mesh. [Limit: >= 3]
 
const unsigned short * polys
 The polygon data. [Size: polyCount * 2 * nvp]
 
const unsigned short * polyFlags
 The user defined flags assigned to each polygon. [Size: polyCount]
 
const unsigned char * polyAreas
 The user defined area ids assigned to each polygon. [Size: polyCount]
 
int polyCount
 Number of polygons in the mesh. [Limit: >= 1]
 
int nvp
 Number maximum number of vertices per polygon. [Limit: >= 3]
 
Height Detail Attributes (Optional)

See rcPolyMeshDetail for details related to these attributes.

const unsigned int * detailMeshes
 The height detail sub-mesh data. [Size: 4 * polyCount]
 
const float * detailVerts
 The detail mesh vertices. [Size: 3 * detailVertsCount] [Unit: wu]
 
int detailVertsCount
 The number of vertices in the detail mesh.
 
const unsigned char * detailTris
 The detail mesh triangles. [Size: 4 * detailTriCount]
 
int detailTriCount
 The number of triangles in the detail mesh.
 
Off-Mesh Connections Attributes (Optional)

Used to define a custom edge within the navigation graph, an off-mesh connection is a user defined traversable connection, at least one side resides within a navigation mesh polygon.

const dtOffMeshLinkCreateParams * offMeshCons
 Off-mesh connection data. [Size: offMeshConCount] [Unit: wu]
 
int offMeshConCount
 The number of off-mesh connections. [Limit: >= 0]
 
Dynamic Area Attributes (Optional)

Used to define a custom dynamic obstacles from convex volumes

const dtDynamicAreaCreateParams * dynamicAreas
 Dynamic Area data. [Size: dynamicAreaCount] [Unit: wu]
 
int dynamicAreaCount
 The number of dynamic areas. [Limit: >= 0]
 
Tile Attributes
注解
The tile grid/layer data can be left at zero if the destination is a single tile mesh.
unsigned int userId
 The user defined id of the tile.
 
int tileX
 The tile's x-grid location within the multi-tile destination mesh. (Along the x-axis.)
 
int tileY
 The tile's y-grid location within the multi-tile desitation mesh. (Along the z-axis.)
 
int tileLayer
 The tile's layer within the layered destination mesh. (Along the y-axis.) [Limit: >= 0]
 
float bmin [3]
 The minimum bounds of the tile. [(x, y, z)] [Unit: wu]
 
float bmax [3]
 The maximum bounds of the tile. [(x, y, z)] [Unit: wu]
 
General Configuration Attributes
float walkableHeight
 The agent height. [Unit: wu]
 
float walkableRadius
 The agent radius. [Unit: wu]
 
float walkableClimb
 The agent maximum traversable ledge. (Up/Down) [Unit: wu]
 
float cs
 The xz-plane cell size of the polygon mesh. [Limit: > 0] [Unit: wu]
 
float ch
 The y-axis cell height of the polygon mesh. [Limit: > 0] [Unit: wu]
 
bool buildBvTree
 True if a bounding volume tree should be built for the tile. 更多...
 

详细描述

Represents the source data used to build an navigation mesh tile.

This structure is used to marshal data between the Recast mesh generation pipeline and Detour navigation components.

See the rcPolyMesh and rcPolyMeshDetail documentation for detailed information related to mesh structure.

Units are usually in voxels (vx) or world units (wu). The units for voxels, grid size, and cell size are all based on the values of cs and ch.

The standard navigation mesh build process is to create tile data using dtCreateNavMeshData, then add the tile to a navigation mesh using either the dtNavMesh single tile init() function or the dtNavMesh::addTile() function.

参见
dtCreateNavMeshData

类成员变量说明

◆ buildBvTree

bool dtNavMeshCreateParams::buildBvTree

True if a bounding volume tree should be built for the tile.

注解
The BVTree is not normally needed for layered navigation meshes.

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