35 static QueryType GetStaticType() {
return TypeNearestBorderHalfEdgeFromPos; }
37 virtual void BuildQueryBlob(BaseBlobHandler* blobHandler);
38 virtual void InitFromQueryBlob(
World* world,
void* blob);
39 virtual Ptr<BaseBlobHandler> CreateQueryBlobHandler() {
return CreateStaticQueryBlobHandler(); }
40 static Ptr<BaseBlobHandler> CreateStaticQueryBlobHandler();
44 void BindToDatabase(Database* database);
48 void SetPositionSpatializationRange(
const PositionSpatializationRange& positionSpatializationRange) {
m_positionSpatializationRange = positionSpatializationRange; }
49 void SetInputIntegerPos(
const WorldIntegerPos& inputIntegerPos) { m_inputIntegerPos = inputIntegerPos; }
53 const Vec3f& GetInputPos()
const {
return m_inputPos3f; }
60 const WorldIntegerPos& GetInputIntegerPos()
const {
return m_inputIntegerPos; }
61 const WorldIntegerPos& GetNearestIntegerPosOnHalfEdge()
const {
return m_nearestPointOnHalfEdgeIntegerPos; }
65 BaseNearestBorderHalfEdgeFromPosQuery();
66 virtual ~BaseNearestBorderHalfEdgeFromPosQuery() {}
69 WorldIntegerPos m_inputIntegerPos;
70 WorldIntegerPos m_nearestPointOnHalfEdgeIntegerPos;
Vec3f m_nearestPosOnHalfEdge
Updated during processing to indicate the point on m_nearestHalfEdgeOnBorder that is the nearest to m...
Definition: basenearestborderhalfedgefromposquery.h:89
Indicates that the query was completed successfully, and a NavMesh border was found.
Definition: basenearestborderhalfedgefromposquery.h:28
NearestBorderHalfEdgeFromPosQueryResult m_result
Updated during processing to indicate the result of the query.
Definition: basenearestborderhalfedgefromposquery.h:93
Indicates that a NavMesh border was not found within the query's bounding box.
Definition: basenearestborderhalfedgefromposquery.h:25
Vertical range (above, below) that represents the altitude tolerance for a position to be inside the ...
Definition: positionspatializationrange.h:17
KyFloat32 m_horizontalTolerance
The horizontal half-width (along both the X and Y axes) of the axis-aligned bounding box within which...
Definition: basenearestborderhalfedgefromposquery.h:74
KyFloat32 m_squareDistFromHalfEdge
Updated during processing to indicate the square distance between m_inputPos3f and m_nearestPosOnHalf...
Definition: basenearestborderhalfedgefromposquery.h:91
virtual QueryType GetType() const
Get query type.
Definition: basenearestborderhalfedgefromposquery.h:36
Base class for all the queries that do not need to be time-sliced.
Definition: iquery.h:245
Base class for NearestBorderHalfEdgeFromPosQuery.
Definition: basenearestborderhalfedgefromposquery.h:32
This class is a runtime container for Autodesk Navigation WorldElements such as NavData, Bots, BoxObstacles, TagVolumes...
Definition: world.h:52
PositionSpatializationRange m_positionSpatializationRange
The Z extent from m_inputPos3f of the axis-aligned bounding box within which the search is performed...
Definition: basenearestborderhalfedgefromposquery.h:75
QueryType
Enumerates all the type of query.
Definition: iquery.h:25
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Indicates that insufficient working memory caused the query to stop.
Definition: basenearestborderhalfedgefromposquery.h:26
Indicates that the query has not yet been initialized.
Definition: iquery.h:295
NearestBorderHalfEdgeFromPosQueryResult
Enumerates the possible results of a NearestBorderHalfEdgeFromPosQuery.
Definition: basenearestborderhalfedgefromposquery.h:20
NavHalfEdgePtr m_nextHalfEdgeOnBorder
Updated during processing to store the next triangle edge along the NavMesh border after m_nearestHal...
Definition: basenearestborderhalfedgefromposquery.h:83
Each instance of this class uniquely identifies a single NavHalfEdge in a NavFloor.
Definition: navhalfedgeptr.h:16
Indicates the query has not yet been initialized.
Definition: basenearestborderhalfedgefromposquery.h:22
NavHalfEdgePtr m_prevHalfEdgeOnBorder
Updated during processing to store the previous triangle edge along the NavMesh border before m_neare...
Definition: basenearestborderhalfedgefromposquery.h:87
Vec3f m_inputPos3f
The starting position for the query.
Definition: basenearestborderhalfedgefromposquery.h:72
Indicates that the query has not yet been launched.
Definition: iquery.h:296
Indicates the query has not yet been launched.
Definition: basenearestborderhalfedgefromposquery.h:23
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
3d vector using 32bits floating points.
Definition: vec3f.h:16
NavHalfEdgePtr m_nearestHalfEdgeOnBorder
Updated during processing to store the nearest triangle edge found in m_inputPos3f.
Definition: basenearestborderhalfedgefromposquery.h:79