#include <targetonpathcomputer.h>
This class updates Bot's target on path so that:
If the current target on path is not directly reachable, it searches a new target on path backwards. This case happens when the Trajectory or the game engine moved the Bot in another direction than towards its target on path.
All the parameters to control this computer are in TargetOnPathConfig.
If it can't manage to find a valid target on path, the TargetOnPathStatus is status and take your own decision (compute a path to the same destination, pick a new destination...).
Public Member Functions | |
TargetOnPathComputer () | |
void | SetupShortcutTrajectoryConfig (const ShortcutTrajectoryConfig &config) |
KyResult | ComputeTargetOnPath (Bot *bot, TargetOnPath &targetOnPath, KyFloat32 simulationTimeInSeconds, ComputeTargetOnPathSearchControl forwardSearchControl) |
void | Clear (Bot *bot) |
static bool | IsComputationRequiredThisFrame (Bot *bot, KyFloat32 simulationTimeInSeconds, TargetOnPath &targetOnPath) |
For internal use only | |
KyResult | ComputeTargetOnPathOnNavMeshOnly (const Bot *bot, TargetOnPath &targetOnPath, KyFloat32 simulationTimeInSeconds, ComputeTargetOnPathSearchControl forwardSearchControl) |