|
Nebula
|
#include "application/stdneb.h"#include "navquery.h"#include "navigationfeatureunit.h"#include "navbuild/navareas.h"#include "math/scalar.h"#include "DetourNavMesh.h"#include "DetourNavMeshQuery.h"#include "DetourCommon.h"#include "profiling/profiling.h"Namespaces | |
| namespace | Navigation |
| Navigation::Build geometry sources. | |
| namespace | NavigationFeature |
| Queries on a loaded navmesh. | |
Functions | |
| QueryFilter | NavigationFeature::DefaultQueryFilter () |
| a filter with the area costs of the area table, every flag included | |
| bool | NavigationFeature::SetAreaCost (QueryFilter &filter, const Util::String &area, float cost) |
| set the cost of an area by name, false if the area table has no such area | |
| static dtQueryFilter | NavigationFeature::ToDetour (const QueryFilter *filter) |
| static dtNavMeshQuery * | NavigationFeature::GetQuery (Navigation::NavMeshId navMesh) |
| static Math::point | NavigationFeature::ToPoint (const float *v) |
| Math::vec3 | NavigationFeature::SearchExtents (Navigation::NavMeshId navMesh) |
| half the size of the box points are looked for in, from the agent kind of the navmesh | |
| static bool | NavigationFeature::NearestPoly (dtNavMeshQuery *query, const dtQueryFilter &filter, const Math::point &position, const Math::vec3 &extents, dtPolyRef &ref, float *nearest) |
| bool | NavigationFeature::FindNearestPoint (Navigation::NavMeshId navMesh, const Math::point &position, const Math::vec3 &extents, Math::point &outPoint, const QueryFilter *filter=nullptr) |
| the point on the surface closest to a position, within the extents around it. Returns false if there is none | |
| NavPath | NavigationFeature::FindPath (Navigation::NavMeshId navMesh, const Math::point &start, const Math::point &end, const QueryFilter *filter=nullptr) |
| a path between two positions, which are moved to the closest surface within the search extents first | |
| bool | NavigationFeature::Raycast (Navigation::NavMeshId navMesh, const Math::point &start, const Math::point &end, Math::point &outHit, const QueryFilter *filter=nullptr) |
| walk along the surface from start towards end. Returns true and the point where it is blocked if an edge of the navmesh is in the way | |
| static float | NavigationFeature::RandomUnit () |
| bool | NavigationFeature::RandomPoint (Navigation::NavMeshId navMesh, Math::point &outPoint, const QueryFilter *filter=nullptr) |
| a random point on the surface, every area of surface is as likely. Returns false if the navmesh has none the filter lets through | |
| bool | NavigationFeature::RandomPointAround (Navigation::NavMeshId navMesh, const Math::point ¢er, float radius, Math::point &outPoint, const QueryFilter *filter=nullptr) |
| a random point on the surface which is connected to the center, on a polygon the circle touches, so it may be up to a polygon outside the radius. Returns false if there is none | |
Variables | |
| static constexpr int | NavigationFeature::MaxPathPolys = 512 |
| static constexpr int | NavigationFeature::MaxPathPoints = 512 |