34 class BaseMoveOnNavMeshQuery :
public IAtomicQuery
37 static QueryType GetStaticType() {
return TypeMoveOnNavMesh; }
38 virtual QueryType GetType()
const {
return TypeMoveOnNavMesh; }
44 const Vec3f& GetStartPos()
const {
return m_startPos3f; }
46 const Vec3f& GetArrivalPos()
const {
return m_arrivalPos3f; }
48 const Vec2f& GetNormalizedDir2d()
const {
return m_normalizedDir2d; }
50 const NavTrianglePtr& GetStartTrianglePtr()
const {
return m_startTrianglePtr; }
52 KyFloat32 GetDistanceToBoundary()
const {
return m_distanceToBoundary; }
54 KyFloat32 GetDistance()
const {
return m_moveDistance; }
56 const WorldIntegerPos& GetStartIntegerPos()
const {
return m_startIntegerPos; }
59 void BindToDatabase(Database* database);
63 void SetStartTrianglePtr(
const NavTrianglePtr& startTrianglePtr) { m_startTrianglePtr = startTrianglePtr; }
65 void SetDistanceToBoundary(
KyFloat32 distanceToBoundary);
67 void SetStartIntegerPos(
const WorldIntegerPos& startIntegerPos) { m_startIntegerPos = startIntegerPos; }
72 BaseMoveOnNavMeshQuery();
73 virtual ~BaseMoveOnNavMeshQuery() {}
78 WorldIntegerPos m_startIntegerPos;
81 Vec2f m_normalizedDir2d;
83 NavTrianglePtr m_startTrianglePtr;
103 bool m_visualDebugActivated;
Indicates that the start position is near an edge but should not be linked to it. ...
Definition: basemoveonnavmeshquery.h:24
Indicates that a NavMesh triangle could not be found for the starting point.
Definition: basemoveonnavmeshquery.h:22
Indicates that the query has not yet been launched.
Definition: basemoveonnavmeshquery.h:20
Indicates that a NavMesh triangle has been found for the starting point, but its NavTag is not consid...
Definition: basemoveonnavmeshquery.h:23
Indicates an arrival point was successfully calculated without a collision with the NavMesh border...
Definition: basemoveonnavmeshquery.h:29
QueryType
Enumerates all the type of query.
Definition: iquery.h:25
Indicates that an unknown error occurred during the query processing.
Definition: basemoveonnavmeshquery.h:27
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:57
Indicates a collision point was found, and a final arrival position was successfully calculated...
Definition: basemoveonnavmeshquery.h:30
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Indicates that insufficient memory was available to store crossed triangles or sub-sections, and the query failed as a result.
Definition: basemoveonnavmeshquery.h:26
MoveOnNavMeshQueryResult
Enumerates the possible results of a MoveOnNavMeshQuery.
Definition: basemoveonnavmeshquery.h:17
Indicates that the query has not yet been initialized.
Definition: iquery.h:295
Indicates a collision point was found, an intermediary position has be found but progression has been...
Definition: basemoveonnavmeshquery.h:31
Indicates that the query has not yet been initialized.
Definition: basemoveonnavmeshquery.h:19
Indicates that the query has not yet been launched.
Definition: iquery.h:296
void Initialize()
Should be called by the derived class prior to perform the query or to push it in a QueryQueue...
Definition: iquery.h:220
float KyFloat32
float
Definition: types.h:32