27 PATHFINDER_DO_NOT_COMPUTE_CHANNELS,
28 PATHFINDER_DO_COMPUTE_CHANNELS,
53 Path* GetPath()
const {
return m_path; }
54 const Vec3f& GetStartPos()
const {
return m_startPos3f; }
56 void SetNavigationProfileId(
KyUInt32 navigationProfileId) { m_navigationProfileId = navigationProfileId; }
57 KyUInt32 GetNavigationProfileId()
const {
return m_navigationProfileId; }
74 void BindToDatabase(Database* database);
88 bool m_doClampRawPath;
91 KyUInt32 m_lastAdvanceDatabaseChangeIdx;
97 KY_INLINE IPathFinderQuery::IPathFinderQuery()
98 : m_navigationProfileId(0)
99 , m_computeChannelMode(PATHFINDER_DO_NOT_COMPUTE_CHANNELS)
100 , m_doClampRawPath(true)
101 , m_lastAdvanceDatabaseChangeIdx(0)
105 KY_INLINE
void IPathFinderQuery::BindToDatabase(Database* database)
116 m_doClampRawPath =
true;
119 m_lastAdvanceDatabaseChangeIdx = 0;
125 KY_INLINE
void IPathFinderQuery::Initialize()
133 m_lastAdvanceDatabaseChangeIdx = 0;
148 m_query->
m_path->SetNavigationProfileId(m_query->GetNavigationProfileId());
ChannelComputerConfig m_channelComputerConfig
The parameter set specific to Channels computation.
Definition: ipathfinderquery.h:86
Base class for all pathfinder queries.
Definition: ipathfinderquery.h:34
PathFinderQueryComputeChannelMode
This enum tells if the PathFinderQuery should compute Channels around path sections laying on the Nav...
Definition: ipathfinderquery.h:25
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
Class that aggregates parameters that allow to configure the channel computation of a Bot...
Definition: channelcomputerconfig.h:89
static Vec3f Zero()
Returns {0.0f, 0.0f, 0.0f}.
Definition: vec3f.h:99
The IPathFinderQuery ended prematurely due to changes into NavData.
Definition: ipathfinderquery.h:45
Ptr< Path > m_path
The Path found by the query.
Definition: ipathfinderquery.h:94
Vec3f m_startPos3f
The starting position for the Path request.
Definition: ipathfinderquery.h:82
PathFinderQueryComputeChannelMode m_computeChannelMode
The mode toggling Channels computation.
Definition: ipathfinderquery.h:85
Base class for all the queries that need to be time-sliced.
Definition: iquery.h:262
The IPathFinderQuery has been completed but no Path has been found.
Definition: ipathfinderquery.h:44
The IPathFinderQuery has been completed and a Path has been found.
Definition: ipathfinderquery.h:43
virtual void DisplayPropagationBounds(DisplayList &) const
Fill the displayList with display info that may help to understand a PathFinderFailure (mainly propag...
Definition: ipathfinderquery.h:68
DisplayList is used to push text, lines or shapes for rendering in the NavigationLab e...
Definition: displaylist.h:128
virtual void GetPathFinderTextResult(String &) const
Fills the String with an explanation of the result. Use this to debug your pathfinder query...
Definition: ipathfinderquery.h:65
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
void BindToDatabase(Database *database)
Should be called by the derived class before Initializing the query Sets m_database and sets m_traver...
Definition: iquery.h:207
PathFinderResult
Enumerates the possible status of a IPathFinderQuery.
Definition: ipathfinderquery.h:38
Gathers all runtime flags used to debug internal algorithms (mostly PathFinder).
Definition: fulldebug.h:14
The IPathFinderQuery is initialized but has not been processed.
Definition: ipathfinderquery.h:41
The IPathFinderQuery is currently under process.
Definition: ipathfinderquery.h:42
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:273
virtual const Vec3f * GetDestination() const =0
This function is virtual because not all the PathFinders have a preset destination, it may return nullptr.
The IPathFinderQuery is not yet initialized.
Definition: ipathfinderquery.h:40
The class representing a path.
Definition: path.h:62
3d vector using 32bits floating points.
Definition: vec3f.h:16
utility class used to set to the SetNavigationProfileId of the path easily created on the stack at th...
Definition: ipathfinderquery.h:141