gwnavruntime/queries/moveonnavmeshquery.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_MoveOnNavMeshQuery_H
10 #define Navigation_MoveOnNavMeshQuery_H
25 class NavHalfEdgeRawPtr;
29 template<
class TraverseLogic>
35 static QueryType GetStaticType() {
return TypeMoveOnNavMesh; }
36 virtual QueryType GetType()
const {
return TypeMoveOnNavMesh; }
71 virtual void Advance(WorkingMemory* workingMemory);
81 const Vec3f& GetStartPos()
const;
82 const Vec3f& GetArrivalPos()
const;
83 const Vec2f& GetNormalizedDir2d()
const;
90 void PerformQueryWithInputCoordPos(WorkingMemory* workingMemory);
98 bool CollectNearbyNavMeshBorders(WorkingMemory* workingMemory, WorkingMemArray<NavHalfEdgeRawPtr>& nearbyEdges);
99 bool SolveCase(WorkingMemory* workingMemory,
const WorkingMemArray<NavHalfEdgeRawPtr>& nearbyEdges);
109 #endif //Navigation_MoveOnNavMeshQuery_H
void SetDistanceToBoundary(KyFloat32 distanceToBoundary)
Set the minimal distance the arrival position should be from any NavMesh border.
Definition: moveonnavmeshquery.inl:35
#define KY_NULL
Null value.
Definition: types.h:247
QueryType
Enumerates all the type of query.
Definition: iquery.h:29
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:64
virtual void Advance(WorkingMemory *workingMemory)
This function is called by the QueryQueue to process one step on the query.
Definition: moveonnavmeshquery.inl:56
This class defines a two-dimensional vector whose coordinates are stored using floating-point numbers...
Definition: vec2f.h:24
void BindToDatabase(Database *database)
Binds the query with the specified Database, clears all the inputs and outputs and sets all other par...
Definition: moveonnavmeshquery.inl:19
Definition: gamekitcrowddispersion.h:20
void PerformQuery(WorkingMemory *workingMemory=0)
Performs the query.
Definition: moveonnavmeshquery.inl:328
MoveOnNavMeshQueryResult
Enumerates the possible results of a MoveOnNavMeshQuery.
Definition: basemoveonnavmeshquery.h:22
Utilities for dealing with NavData coordinates, which are expressed in a world space based on integer...
Definition: worldintegerpos.h:21
Each instance of this class uniquely identifies a single NavTriangle in a NavFloor.
Definition: navtriangleptr.h:22
This class is used to get move bots on the NavMesh without physics engine.
Definition: moveonnavmeshquery.h:30
void SetStartTrianglePtr(const NavTrianglePtr &startTrianglePtr)
Set the NavMesh triangle that corresponds to #m_startPos3f.
Definition: moveonnavmeshquery.inl:31
void Initialize()
Should be called by the derived class before trying to perform the query or to push it in a QueryQueu...
Definition: iquery.h:372
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23