![]() |
Recast Navigation
Navigation-mesh Toolset for Games
|
Go to the source code of this file.
Classes | |
| struct | dtPoly |
| Defines a polygon within a dtMeshTile object. More... | |
| struct | dtPolyDetail |
| Defines the location of detail sub-mesh data within a dtMeshTile. More... | |
| struct | dtLink |
| Defines a link between polygons. More... | |
| struct | dtBVNode |
| Bounding volume node. More... | |
| struct | dtOffMeshConnection |
| Defines an navigation mesh off-mesh connection within a dtMeshTile object. More... | |
| struct | dtMeshHeader |
| Provides high level information related to a dtMeshTile object. More... | |
| struct | dtMeshTile |
| Defines a navigation mesh tile. More... | |
| struct | dtNavMeshParams |
| Configuration parameters used to define multi-tile navigation meshes. More... | |
| class | dtNavMesh |
| A navigation mesh based on tiles of convex polygons. More... | |
Typedefs | |
| typedef unsigned int | dtPolyRef |
| A handle to a polygon within a navigation mesh tile. | |
| typedef unsigned int | dtTileRef |
| A handle to a tile within a navigation mesh. | |
Enumerations | |
| enum | dtTileFlags { DT_TILE_FREE_DATA = 0x01 } |
| Tile flags used for various functions and fields. More... | |
| enum | dtStraightPathFlags { DT_STRAIGHTPATH_START = 0x01 , DT_STRAIGHTPATH_END = 0x02 , DT_STRAIGHTPATH_OFFMESH_CONNECTION = 0x04 } |
| Vertex flags returned by dtNavMeshQuery::findStraightPath. More... | |
| enum | dtStraightPathOptions { DT_STRAIGHTPATH_AREA_CROSSINGS = 0x01 , DT_STRAIGHTPATH_ALL_CROSSINGS = 0x02 } |
| Options for dtNavMeshQuery::findStraightPath. More... | |
| enum | dtFindPathOptions { DT_FINDPATH_ANY_ANGLE = 0x02 } |
| Options for dtNavMeshQuery::initSlicedFindPath and updateSlicedFindPath. More... | |
| enum | dtRaycastOptions { DT_RAYCAST_USE_COSTS = 0x01 } |
| Options for dtNavMeshQuery::raycast. More... | |
| enum | dtDetailTriEdgeFlags { DT_DETAIL_EDGE_BOUNDARY = 0x01 } |
| enum | dtPolyTypes { DT_POLYTYPE_GROUND = 0 , DT_POLYTYPE_OFFMESH_CONNECTION = 1 } |
| Flags representing the type of a navigation mesh polygon. More... | |
Functions | |
| int | dtGetDetailTriEdgeFlags (unsigned char triFlags, int edgeIndex) |
| Get flags for edge in detail triangle. | |
| dtNavMesh * | dtAllocNavMesh () |
| Allocates a navigation mesh object using the Detour allocator. | |
| void | dtFreeNavMesh (dtNavMesh *navmesh) |
| Frees the specified navigation mesh object using the Detour allocator. | |
Variables | |
| static const int | DT_VERTS_PER_POLYGON = 6 |
| The maximum number of vertices per navigation polygon. | |
| static const unsigned short | DT_EXT_LINK = 0x8000 |
| A flag that indicates that an entity links to an external entity. | |
| static const unsigned int | DT_NULL_LINK = 0xffffffff |
| A value that indicates the entity does not link to anything. | |
| static const unsigned int | DT_OFFMESH_CON_BIDIR = 1 |
| A flag that indicates that an off-mesh connection can be traversed in both directions. (Is bidirectional.) | |
| static const int | DT_MAX_AREAS = 64 |
| The maximum number of user defined area ids. | |
| static const float | DT_RAY_CAST_LIMIT_PROPORTIONS = 50.0f |
| Limit raycasting during any angle pahfinding The limit is given as a multiple of the character radius. | |
Tile Serialization Constants | |
These constants are used to detect whether a navigation tile's data and state format is compatible with the current build. | |
| static const int | DT_NAVMESH_MAGIC = 'D'<<24 | 'N'<<16 | 'A'<<8 | 'V' |
| A magic number used to detect compatibility of navigation tile data. | |
| static const int | DT_NAVMESH_VERSION = 7 |
| A version number used to detect compatibility of navigation tile data. | |
| static const int | DT_NAVMESH_STATE_MAGIC = 'D'<<24 | 'N'<<16 | 'M'<<8 | 'S' |
| A magic number used to detect the compatibility of navigation tile states. | |
| static const int | DT_NAVMESH_STATE_VERSION = 1 |
| A version number used to detect compatibility of navigation tile states. | |
| enum dtDetailTriEdgeFlags |
| enum dtFindPathOptions |
Options for dtNavMeshQuery::initSlicedFindPath and updateSlicedFindPath.
| Enumerator | |
|---|---|
| DT_FINDPATH_ANY_ANGLE | use raycasts during pathfind to "shortcut" (raycast still consider costs) |
| enum dtPolyTypes |
| enum dtRaycastOptions |
Options for dtNavMeshQuery::raycast.
| Enumerator | |
|---|---|
| DT_RAYCAST_USE_COSTS | Raycast should calculate movement cost along the ray and fill RaycastHit::cost. |
| enum dtStraightPathFlags |
Vertex flags returned by dtNavMeshQuery::findStraightPath.
Options for dtNavMeshQuery::findStraightPath.
| Enumerator | |
|---|---|
| DT_STRAIGHTPATH_AREA_CROSSINGS | Add a vertex at every polygon edge crossing where area changes. |
| DT_STRAIGHTPATH_ALL_CROSSINGS | Add a vertex at every polygon edge crossing. |
| enum dtTileFlags |
Tile flags used for various functions and fields.
For an example, see dtNavMesh::addTile().
| Enumerator | |
|---|---|
| DT_TILE_FREE_DATA | The navigation mesh owns the tile memory and is responsible for freeing it. |
|
inline |
Get flags for edge in detail triangle.
| [in] | triFlags | The flags for the triangle (last component of detail vertices above). |
| [in] | edgeIndex | The index of the first vertex of the edge. For instance, if 0, returns flags for edge AB. |
|
static |
A flag that indicates that an entity links to an external entity.
(E.g. A polygon edge is a portal that links to another polygon.)
|
static |
A magic number used to detect compatibility of navigation tile data.
|
static |
A magic number used to detect the compatibility of navigation tile states.
|
static |
A version number used to detect compatibility of navigation tile states.
|
static |
A version number used to detect compatibility of navigation tile data.
|
static |
A value that indicates the entity does not link to anything.
|
static |
A flag that indicates that an off-mesh connection can be traversed in both directions. (Is bidirectional.)
|
static |
Limit raycasting during any angle pahfinding The limit is given as a multiple of the character radius.