11 #ifndef Navigation_NearestBorderHalfEdgeFromPosQuery_H
12 #define Navigation_NearestBorderHalfEdgeFromPosQuery_H
30 template<
class TraverseLogic>
31 class NearestBorderHalfEdgeFromPosQuery :
public BaseNearestBorderHalfEdgeFromPosQuery
62 virtual void Advance(WorkingMemory* workingMemory);
72 const Vec3f& GetInputPos()
const;
73 const Vec3f& GetNearestPosOnHalfEdge()
const;
78 KyFloat32 GetSquareDistFromNearestBorder()
const;
80 const PositionSpatializationRange& GetPositionSpatializationRange()
const;
83 void PerformQueryWithInputCoordPos(WorkingMemory* workingMemory);
94 #endif //Navigation_NearestBorderHalfEdgeFromPosQuery_H
#define KY_NULL
Null value.
Definition: types.h:247
void SetPositionSpatializationRange(const PositionSpatializationRange &positionSpatializationRange)
Write accessor for m_positionSpatializationRange.
Definition: nearestborderhalfedgefromposquery.inl:37
This class is a runtime container for all NavData that represents the world from the point of view of...
Definition: database.h:64
void PerformQuery(WorkingMemory *workingMemory=0)
Performs the query.
Definition: nearestborderhalfedgefromposquery.inl:114
void SetHorizontalTolerance(KyFloat32 horizontalTolerance)
Write accessor for m_horizontalTolerance.
Definition: nearestborderhalfedgefromposquery.inl:31
Definition: gamekitcrowddispersion.h:20
NearestBorderHalfEdgeFromPosQueryResult
Enumerates the possible results of a NearestBorderHalfEdgeFromPosQuery.
Definition: basenearestborderhalfedgefromposquery.h:29
void BindToDatabase(Database *database)
Binds the query with the specified Database, clears all the inputs and outputs and sets all other par...
Definition: nearestborderhalfedgefromposquery.inl:19
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 NavHalfEdge in a NavFloor.
Definition: navhalfedgeptr.h:19
virtual void Advance(WorkingMemory *workingMemory)
This function is called by the QueryQueue to process one step on the query.
Definition: nearestborderhalfedgefromposquery.inl:107
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
The NearestBorderHalfEdgeFromPosQuery class finds the NavMesh border nearest a specified 3D position ...
Definition: nearestborderhalfedgefromposquery.h:34
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