Module |
|
Header |
/Engine/Source/Runtime/Navmesh/Public/Detour/DetourNavMeshBuilder.h |
Include |
#include "Detour/DetourNavMeshBuilder.h" |
struct dtNavMeshCreateParams
Represents the source data used to build an navigation mesh tile.
This section contains detailed documentation for members that don't have a source file. It reduces clutter in the main section of the header.
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](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\cs) and [ch](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\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.
Name | Description | ||
---|---|---|---|
|
float[3] |
bmax |
The maximum bounds of the tile. [(x, y, z)] [Unit: wu]. |
|
float[3] |
bmin |
The minimum bounds of the tile. [(x, y, z)] [Unit: wu]. |
|
buildBvTree |
True if a bounding volume tree should be built for the tile. |
|
|
float |
ch |
The y-axis cell height of the polygon mesh. [Limit: > 0] [Unit: wu]. |
|
float |
cs |
The xz-plane cell size of the polygon mesh. [Limit: > 0] [Unit: wu]. |
|
const unsigned ... |
detailMeshes |
The height detail sub-mesh data. [Size: 4 * [polyCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\polyCount)]. |
|
int |
detailTriCount |
The number of triangles in the detail mesh. |
|
const unsigned ... |
detailTris |
The detail mesh triangles. [Size: 4 * [detailTriCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\detailTriCount)]. |
|
const float ... |
detailVerts |
The detail mesh vertices. [Size: 3 * [detailVertsCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\detailVertsCount)] [Unit: wu]. |
|
int |
detailVertsCount |
The number of vertices in the detail mesh. |
|
int |
dynamicAreaCount |
The number of dynamic areas. [Limit: >= 0]. |
|
const dtDynamic... |
dynamicAreas |
Dynamic Area data. [Size: [dynamicAreaCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\dynamicAreaCount)] [Unit: wu]. |
|
int |
nvp |
Number maximum number of vertices per polygon. [Limit: >= 3]. |
|
int |
offMeshConCount |
The number of off-mesh connections. [Limit: >= 0]. |
|
const dtOffMesh... |
offMeshCons |
Off-mesh connection data. [Size: [offMeshConCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\offMeshConCount)] [Unit: wu]. |
|
const unsigned ... |
polyAreas |
The user defined area ids assigned to each polygon. [Size: [polyCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\polyCount)]. |
|
int |
polyCount |
Number of polygons in the mesh. [Limit: >= 1]. |
|
const unsigned ... |
polyFlags |
The user defined flags assigned to each polygon. [Size: [polyCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\polyCount)]. |
|
const unsigned ... |
polys |
The polygon data. [Size: [polyCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\polyCount) * 2 * [nvp](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\nvp)]. |
|
int |
tileLayer |
The tile's layer within the layered destination mesh. (Along the y-axis.) [Limit: >= 0]. |
|
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.) |
|
unsigned int |
userId |
The user defined id of the tile. |
|
int |
vertCount |
The number vertices in the polygon mesh. [Limit: >= 3]. |
|
const unsigned ... |
verts |
The polygon mesh vertices. [(x, y, z) * [vertCount](API\Runtime\Navmesh\Detour\dtNavMeshCreateParams\vertCount)] [Unit: vx]. |
|
float |
walkableClimb |
The agent maximum traversable ledge. (Up/Down) [Unit: wu]. |
|
float |
walkableHeight |
The agent height. [Unit: wu]. |
|
float |
walkableRadius |
The agent radius. [Unit: wu]. |