19 template<
class TraverseLogic>
22 if(input.m_simulationTimeInSeconds == 0.0f)
23 return input.m_currentPosition;
26 Kaim::Vec3f move = input.m_velocity * input.m_simulationTimeInSeconds;
33 return input.m_currentPosition;
36 query.BindToDatabase (input.m_database);
38 query.Initialize (input.m_currentPosition, move2d, dist);
39 query.SetStartTrianglePtr (input.m_navTrianglePtr);
42 switch (query.GetResult())
46 return input.m_currentPosition;
53 return input.m_currentPosition + move;
58 return query.GetArrivalPos();
64 return input.m_currentPosition;
68 Vec3f m_currentPosition;
72 void* m_traverseLogicUserData;
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
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
2d vector using KyFloat32.
Definition: vec2f.h:18
This class is used to get move bots on the NavMesh without physics engine.
Definition: botmoveonnavmesh.h:16
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
Indicates a collision point was found, an intermediary position has be found but progression has been...
Definition: basemoveonnavmeshquery.h:31
Each instance of this class uniquely identifies a single NavTriangle in a NavFloor.
Definition: navtriangleptr.h:17
This class is used to get move bots on the NavMesh without physics engine.
Definition: moveonnavmeshquery.h:26
Indicates that the query has not yet been initialized.
Definition: basemoveonnavmeshquery.h:19
void PerformQuery(WorkingMemory *workingMemory=nullptr)
If workingMemory param is nullptr, m_database.GetWorkingMemory() will be used.
Definition: moveonnavmeshquery.inl:267
KyFloat32 GetNormalized2d(Vec2f &normalized) const
as Get2d().GetNormalized()
Definition: vec3f.h:224
float KyFloat32
float
Definition: types.h:32
3d vector using 32bits floating points.
Definition: vec3f.h:16
void SetTraverseLogicUserData(void *traverseLogicUserData)
Sets m_traverseLogicUserData for queries that have a custom TraverseLogic, useless otherwise...
Definition: iquery.h:167