25 enum ComputeTargetOnPathResult
27 KeepCurrentTarget = 0,
32 enum ComputeTargetOnPathSearchControl
50 template <
class TraverseLogic>
59 static bool IsComputationRequiredThisFrame(
Bot* bot,
KyFloat32 timeToNextUpdate,
const TargetOnPath& targetOnPath);
63 KyResult ComputeTargetOnPath(
Bot* bot, TargetOnPath& targetOnPath,
KyFloat32 simulationTimeInSeconds, ComputeTargetOnPathSearchControl forwardSearchControl);
71 InvalidCandidate_CanGoArrivedInWrongFloor,
72 InvalidCandidate_CanGoFailure,
73 InvalidCandidate_TooFarFromBot
76 KyResult ComputeWhenNotOnMesh(
Bot* bot, TargetOnPath& targetOnPath,
KyFloat32 simulationTimeInSeconds, ComputeTargetOnPathSearchControl forwardSearchControl);
77 KyResult ComputeWhenOnMesh(
const Bot* bot, TargetOnPath& targetOnPath,
KyFloat32 simulationTimeInSeconds,
KyFloat32 costFromBotToTOP, PathEdgeType currentEdgeType, ComputeTargetOnPathSearchControl forwardSearchControl);
79 ComputeTargetOnPathResult Shortcut(
const Bot* bot, TargetOnPath& targetOnPath,
KyFloat32 simulationTimeInSeconds,
KyFloat32 costFromBotToTOP, PathEdgeType currentEdgeType);
80 KyResult MakeSureTargetOnPathIsVisibleAndGetCostFromBotToTOP(
const Bot* bot, TargetOnPath& targetOnPath,
KyFloat32& costFromBotToTOP);
81 KyResult CheckTargetOnPathIsVisibleAndGetCostFromBotToTOP(
const Bot* bot, TargetOnPath& targetOnPath,
KyFloat32& costFromBotToTOP);
82 KyResult FindVisibleTargetOnPathBackwardWithCost(
const Bot* bot, TargetOnPath& targetOnPath,
KyFloat32& costFromBotToTOP);
83 ComputeTargetOnPathSearchControl ShortcutOnNextSample(
const Bot* bot,
DisplayList& displayList, TargetOnPath& candidate, TargetOnPath& bestCandidate,
KyFloat32& costToBest);
90 KyResult ComputeTargetOnPathOnNavMeshOnly(
const Bot* bot, TargetOnPath& targetOnPath,
KyFloat32 simulationTimeInSeconds, ComputeTargetOnPathSearchControl forwardSearchControl);
94 LocalCostAwareTraverseLogicData m_localCostAwareTraverseLogicData;
This class is the world element that represent an active character in Autodesk Navigation.
Definition: bot.h:128
This class updates Bot's target on path so that:
Definition: targetonpathcomputer.h:51
The RayCanGoQuery tests if a ray can go from start to dest on the navmesh.
Definition: raycangoquery.h:20
RayCanGoMarginMode
Defines the different mode for the NavMesh border margin to be used in RayCanGo queries.
Definition: database.h:37
DisplayList is used to push text, lines or shapes for rendering in the NavigationLab e...
Definition: displaylist.h:128
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
LocalCostAwareTraverseLogic is a wrapper around the traverse logic set by the user.
Definition: localcostawaretraverselogic.h:34
Each instance of this class uniquely identifies a single NavTriangle in a NavFloor.
Definition: navtriangleptr.h:17
Set of parameters used by the ShortcutTrajectory and TargetOnPathComputer classes to update Bot targe...
Definition: shortcuttrajectoryconfig.h:89
float KyFloat32
float
Definition: types.h:32
3d vector using 32bits floating points.
Definition: vec3f.h:16