19 #ifndef DETOURNAVMESHBUILDER_H
20 #define DETOURNAVMESHBUILDER_H
22 #include <AtomsUtils/Globals.h>
23 #include <AtomsUtils/NavigationMesh/Detour/DetourAlloc.h>
ATOMSUTILS_EXPORT bool dtCreateNavMeshData(dtNavMeshCreateParams *params, unsigned char **outData, int *outDataSize)
AtomsCore namespace.
Definition: Base64.h:13
ATOMSUTILS_EXPORT bool dtNavMeshHeaderSwapEndian(unsigned char *data, const int dataSize)
ATOMSUTILS_EXPORT bool dtNavMeshDataSwapEndian(unsigned char *data, const int dataSize)
Definition: DetourNavMeshBuilder.h:49
dtChunkArray< float > verts
X,Z coords of covex.
Definition: DetourNavMeshBuilder.h:56
float minH
Covex min,max height.
Definition: DetourNavMeshBuilder.h:53
unsigned char area
Area id.
Definition: DetourNavMeshBuilder.h:51
Definition: DetourNavMeshBuilder.h:62
int nvp
Number maximum number of vertices per polygon. [Limit: >= 3].
Definition: DetourNavMeshBuilder.h:75
const unsigned char * detailTris
The detail mesh triangles. [Size: 4 * detailTriCount].
Definition: DetourNavMeshBuilder.h:91
const dtDynamicAreaCreateParams * dynamicAreas
Dynamic Area data. [Size: dynamicAreaCount] [Unit: wu].
Definition: DetourNavMeshBuilder.h:112
const dtOffMeshLinkCreateParams * offMeshCons
Off-mesh connection data. [Size: offMeshConCount] [Unit: wu].
Definition: DetourNavMeshBuilder.h:102
float bmax[3]
The maximum bounds of the tile. [(x, y, z)] [Unit: wu].
Definition: DetourNavMeshBuilder.h:127
const unsigned short * polyFlags
The user defined flags assigned to each polygon. [Size: polyCount].
Definition: DetourNavMeshBuilder.h:72
float walkableRadius
The agent radius. [Unit: wu].
Definition: DetourNavMeshBuilder.h:134
float cs
The xz-plane cell size of the polygon mesh. [Limit: > 0] [Unit: wu].
Definition: DetourNavMeshBuilder.h:136
float walkableHeight
The agent height. [Unit: wu].
Definition: DetourNavMeshBuilder.h:133
int polyCount
Number of polygons in the mesh. [Limit: >= 1].
Definition: DetourNavMeshBuilder.h:74
bool buildBvTree
Definition: DetourNavMeshBuilder.h:141
int dynamicAreaCount
The number of dynamic areas. [Limit: >= 0].
Definition: DetourNavMeshBuilder.h:114
int detailVertsCount
The number of vertices in the detail mesh.
Definition: DetourNavMeshBuilder.h:90
unsigned int userId
The user defined id of the tile.
Definition: DetourNavMeshBuilder.h:122
unsigned short clusterCount
Number of unique clusters.
Definition: DetourNavMeshBuilder.h:81
int tileY
The tile's y-grid location within the multi-tile desitation mesh. (Along the z-axis....
Definition: DetourNavMeshBuilder.h:124
unsigned short * polyClusters
Cluster Id for each polygon [Size: polyCount].
Definition: DetourNavMeshBuilder.h:80
float bmin[3]
The minimum bounds of the tile. [(x, y, z)] [Unit: wu].
Definition: DetourNavMeshBuilder.h:126
int tileX
The tile's x-grid location within the multi-tile destination mesh. (Along the x-axis....
Definition: DetourNavMeshBuilder.h:123
const unsigned char * polyAreas
The user defined area ids assigned to each polygon. [Size: polyCount].
Definition: DetourNavMeshBuilder.h:73
const unsigned short * polys
The polygon data. [Size: polyCount * 2 * nvp].
Definition: DetourNavMeshBuilder.h:71
const unsigned int * detailMeshes
The height detail sub-mesh data. [Size: 4 * polyCount].
Definition: DetourNavMeshBuilder.h:88
const float * detailVerts
The detail mesh vertices. [Size: 3 * detailVertsCount] [Unit: wu].
Definition: DetourNavMeshBuilder.h:89
float ch
The y-axis cell height of the polygon mesh. [Limit: > 0] [Unit: wu].
Definition: DetourNavMeshBuilder.h:137
const unsigned short * verts
The polygon mesh vertices. [(x, y, z) * vertCount] [Unit: vx].
Definition: DetourNavMeshBuilder.h:69
int detailTriCount
The number of triangles in the detail mesh.
Definition: DetourNavMeshBuilder.h:92
int vertCount
The number vertices in the polygon mesh. [Limit: >= 3].
Definition: DetourNavMeshBuilder.h:70
int offMeshConCount
The number of off-mesh connections. [Limit: >= 0].
Definition: DetourNavMeshBuilder.h:104
float walkableClimb
The agent maximum traversable ledge. (Up/Down) [Unit: wu].
Definition: DetourNavMeshBuilder.h:135
int tileLayer
The tile's layer within the layered destination mesh. (Along the y-axis.) [Limit: >= 0].
Definition: DetourNavMeshBuilder.h:125
Definition: DetourNavMeshBuilder.h:28
unsigned char type
Off-mesh connection type (point to point, segment to segment, bidirectional)
Definition: DetourNavMeshBuilder.h:45
unsigned short polyFlag
User defined flags assigned to the polys of off-mesh connections.
Definition: DetourNavMeshBuilder.h:41
float vertsA0[3]
Off-mesh connection vertices (point-point = A0 <> B0, segment-segment = A0-A1 <> B0-B1 ) [Unit: wu].
Definition: DetourNavMeshBuilder.h:30
float snapRadius
Off-mesh connection radii. [Unit: wu].
Definition: DetourNavMeshBuilder.h:35
unsigned int userID
The user defined ids of the off-mesh connection.
Definition: DetourNavMeshBuilder.h:39
float snapHeight
Off-mesh connection height, less than 0 = use step height [Unit: wu].
Definition: DetourNavMeshBuilder.h:37
unsigned char area
User defined area ids assigned to the off-mesh connections.
Definition: DetourNavMeshBuilder.h:43