#include <baseshortcuttrajectory.h>
This class computes minimal trajectory made of just one velocity.
It can be configured to:
Inherits Kaim::RefCountBase< C, Stat >.
Inherited by Kaim::ShortcutTrajectory< TraverseLogic >.
Functions | |
BaseShortcutTrajectory (Trajectory *trajectory) | |
virtual | ~BaseShortcutTrajectory ()=0 |
void | Compute (KyFloat32 simulationTimeInSeconds, KyUInt32 worldUpdateIdx) |
void | Clear () |
void | ClearTrajectory () |
const Vec3f & | GetTrajectoryTarget () const |
void | ForceTargetToTargetOnPath () |
void | ForceTargetToPosition (const Vec3f &forcedTarget) |
For internal use only | |
Trajectory * | m_trajectory |
ShortcutTrajectoryConfig | m_config |
Ptr< IAvoidanceComputer > | m_avoidanceComputer |
TargetOnPath | m_targetOnPath |
Vec3f | m_target |
KyUInt32 | m_updateLastUpdateIdx |
ShortcutMode | m_shortcutMode |
ShortcutMode | m_prevShortcutMode |
KyUInt32 | m_trajectoryComputeModeLastUpdateIdx |
bool | m_useTargetProvidedByUser |
bool | m_useMinimalTargetUpdate |
bool | m_visualDebugBlobSent |
Bot * | GetBot () const |
void | SendVisualDebugBlob (VisualDebugServer &visualDebugServer, VisualDebugSendChangeEvent changeEvent) |
void | RemoveAllVisualDebugBeforeTrajectoryChange (VisualDebugServer &visualDebugServer) |
void | InitTargetOnPathIfNeeded () |
void | UpdateTarget (KyFloat32 simulationTimeInSeconds, KyUInt32 worldUpdateIdx) |
ShortcutMode | GetShortcutMode (KyUInt32 worldUpdateIdx) |
bool | CanUseTargetOnPath () const |
virtual KyResult | ComputeTargetOnPath (KyFloat32 simulationTimeInSeconds)=0 |
virtual KyResult | ComputeTargetOnPathOnNavMeshOnly (TargetOnPath &targetOnPath, KyFloat32 simulationTimeInSeconds, ComputeTargetOnPathSearchControl forwardSearchControl) const =0 |
bool | WillUpdatePathFollowThisFrame (KyFloat32 simulationTimeInSeconds, KyUInt32 worldUpdateIdx, KyUInt32 updatePeriod) |