#include <shortcuttrajectory.h>
This class computes minimal trajectory made of just one velocity.
It can be configured to:
Inherits Kaim::BaseShortcutTrajectory.
Functions | |
| 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 | |
| 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 |
| bool | WillUpdatePathFollowThisFrame (KyFloat32 simulationTimeInSeconds, KyUInt32 worldUpdateIdx, KyUInt32 updatePeriod) |
| 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 |
Functions | |
| ShortcutTrajectory (Trajectory *trajectory) | |
For internal use only | |
| virtual KyResult | ComputeTargetOnPath (KyFloat32 simulationTimeInSeconds) |
| virtual KyResult | ComputeTargetOnPathOnNavMeshOnly (TargetOnPath &targetOnPath, KyFloat32 simulationTimeInSeconds, ComputeTargetOnPathSearchControl forwardSearchControl) const |