Provides an access to the NavMesh data. More...
#include
Public Member Functions | |
virtual void | GetMeshParams (NavMesh::SParams &outParams) const =0 |
Fills a NavMesh::SParams structure with a mesh parameters. | |
virtual TileID | FindTileIDByTileGridCoord (const vector3_t &tileGridCoord) const =0 |
virtual size_t | QueryTriangles (const aabb_t &queryAabbWorld, INavMeshQueryFilter *pOptionalFilter, const size_t maxTrianglesCount, TriangleID *pOutTriangles) const =0 |
virtual TriangleID | FindClosestTriangle (const vector3_t &queryPosWorld, const TriangleID *pCandidateTriangles, const size_t candidateTrianglesCount, vector3_t *pOutClosestPosWorld, float *pOutClosestDistanceSq) const =0 |
virtual bool | GetTileData (const TileID tileId, Tile::STileData &outTileData) const =0 |
virtual const AreaAnnotation * | GetTriangleAnnotation (TriangleID triangleID) const =0 |
virtual bool | CanTrianglePassFilter (const TriangleID triangleID, const INavMeshQueryFilter &filter) const =0 |
Provides an access to the NavMesh data.
|
pure virtual |
Returns whether the triangle can passes the NavMesh query filter
triangleID | Id of the triangle |
filter | Query filter to check triangle with |
|
pure virtual |
Finds a single triangle closest to the point. /see QueryTriangles() for a way to get candidate triangles.
queryPosWorld | Query point in a world coordinate space. |
pCandidateTriangles | Array of triangleID to search. |
candidateTrianglesCount | Size of pCandidateTriangles array. |
pOutClosestPosWorld | Optional pointer for a return value of a snapped to the triangle point in the world coordinate space. |
pOutClosestDistanceSq | Optional pointer for a return value of squared distance between query point and a snapped to the triangle point. |
|
pure virtual |
Finds a TileID by the tile's grid coordinate.
|
pure virtual |
Fills a STileData structure for a read-only tile data access
tileId | Id of tile |
outTileData | STileData structure to fill |
|
pure virtual |
Returns triangle area annotation
triangleID | id of the triangle |
|
pure virtual |
Queries NavMesh triangles inside a bounding box.
queryAabbWorld | Bounding box for the query in a world coordinate space. |
pOptionalFilter | Pointer to the optional triangle filter. If provided, then it's called for each triangleId. |
maxTrianglesCount | Size of output buffer for result triangleId's. |
pOutTriangles | Array buffer for result triangleId's. |