fix for Issue 90:Additional unit type annotation.

This commit is contained in:
Mikko Mononen 2010-07-08 11:20:20 +00:00
parent 0c3474f9c1
commit 3ee2ef9d72

View File

@ -19,41 +19,44 @@
#ifndef DETOURNAVMESHBUILDER_H #ifndef DETOURNAVMESHBUILDER_H
#define DETOURNAVMESHBUILDER_H #define DETOURNAVMESHBUILDER_H
// The units of the parameters are specified in parenthesis as follows:
// (vx) voxels, (wu) world units
struct dtNavMeshCreateParams struct dtNavMeshCreateParams
{ {
// Navmesh vertices. // Navmesh vertices.
const unsigned short* verts; const unsigned short* verts; // Array of vertices, each vertex has 3 components. (vx).
int vertCount; int vertCount; // Vertex count
// Navmesh polygons // Navmesh polygons
const unsigned short* polys; const unsigned short* polys; // Array of polygons, uses same format as rcPolyMesh.
const unsigned short* polyFlags; const unsigned short* polyFlags; // Array of flags per polygon.
const unsigned char* polyAreas; const unsigned char* polyAreas; // Array of area ids per polygon.
int polyCount; int polyCount; // Number of polygons
int nvp; int nvp; // Number of verts per polygon.
// Navmesh Detail // Navmesh Detail
const unsigned short* detailMeshes; const unsigned short* detailMeshes; // Detail meshes, uses same format as rcPolyMeshDetail.
const float* detailVerts; const float* detailVerts; // Detail mesh vertices, uses same format as rcPolyMeshDetail (wu).
int detailVertsCount; int detailVertsCount; // Total number of detail vertices
const unsigned char* detailTris; const unsigned char* detailTris; // Array of detail tris per detail mesh.
int detailTriCount; int detailTriCount; // Total number of detail triangles.
// Off-Mesh Connections. // Off-Mesh Connections.
const float* offMeshConVerts; const float* offMeshConVerts; // Off-mesh connection vertices (wu).
const float* offMeshConRad; const float* offMeshConRad; // Off-mesh connection radii (wu).
const unsigned short* offMeshConFlags; const unsigned short* offMeshConFlags; // Off-mesh connection flags.
const unsigned char* offMeshConAreas; const unsigned char* offMeshConAreas; // Off-mesh connection area ids.
const unsigned char* offMeshConDir; const unsigned char* offMeshConDir; // Off-mesh connection direction flags (1 = bidir, 0 = oneway).
int offMeshConCount; int offMeshConCount; // Number of off-mesh connections
// Tile location // Tile location
unsigned int userId; unsigned int userId; // User ID bound to the tile.
int tileX, tileY; int tileX, tileY; // Tile location (tile coords).
float bmin[3], bmax[3]; float bmin[3], bmax[3]; // Tile bounds (wu).
// Settings // Settings
float walkableHeight; float walkableHeight; // Agent height (wu).
float walkableRadius; float walkableRadius; // Agent radius (wu).
float walkableClimb; float walkableClimb; // Agent max climb (wu).
float cs; float cs; // Cell size (xz) (wu).
float ch; float ch; // Cell height (y) (wu).
int tileSize; int tileSize; // Tile size (width & height) (vx).
}; };
// Build navmesh data from given input data. // Build navmesh data from given input data.