11 #include <kyruntime.h>
13 #include <kyruntime/pathfinding/pathfinder.h>
19 class ActionTorsoRotate;
20 class PointLockManager;
28 KY_DEFINE_NEW_DELETE_OPERATORS
46 virtual void OnDeactivateBody(Body& body)
48 if (m_followAgent->GetLeader() == &body)
49 m_followAgent->SetLeader(KY_NULL);
71 KyResult Initialize(
Bot& bot, TimeManager::TaskId computeRealDestinationTaskId);
89 void SetLeader(Body* target);
98 void SetDistFromLeader (KyFloat32 distFromTarget);
109 void SetAngleFromLeader(KyFloat32 angleFromTarget);
119 void SetMinimalImportantMove(
const KyFloat32 value);
130 void SetSpeed(
const KyFloat32 speed);
133 KyFloat32
GetSpeed()
const {
return m_desiredSpeed; }
139 void SetMaxTimeToReachIdealDestination(KyFloat32 interval);
164 void computeAndLockDestination(Vec3f &offsetPosNow);
171 KyBool NeedRecomputation(Vec3f &offsetPosNow);
176 void computeVisibleDestination(Vec3f& idealPos);