gwnavruntime/pathfollower/trajectory.h Source File
Go to the documentation of this file.
17 class VisualDebugServer;
18 class SplineTrajectory;
19 class BaseShortcutTrajectory;
20 class FollowedCircleArcSpline;
22 class PositionOnLivePath;
26 class Trajectory :
public RefCountBase<Trajectory, MemStat_PathFollowing>
36 void SetShortcutTrajectory(Ptr<BaseShortcutTrajectory> shortcutTrajectory);
37 void SetAvoidanceComputer(Ptr<IAvoidanceComputer> avoidanceComputer);
39 TrajectoryMode GetTrajectoryMode()
const {
return m_trajectoryMode; }
43 Ptr<IAvoidanceComputer> GetAvoidanceComputer() {
return m_avoidanceComputer; }
44 Vec2f GetIdealVelocity()
const {
return m_idealVelocity; }
49 void ClearOutput(
const Vec2f& frontDirection);
52 void ClearTrajectory();
59 void SendVisualDebugBlob(VisualDebugServer& visualDebugServer, VisualDebugSendChangeEvent changeEvent);
63 enum OutputVelocity { OutputVelocity_Stop, OutputVelocity_SlowDownToTarget, OutputVelocity_FullSpeed };
66 static OutputVelocity ComputeStraightVelocityToTarget2d(
Bot* bot,
KyFloat32 simulationTimeInSeconds,
const Vec2f& target,
Vec2f& outputVelocity);
74 Ptr<IAvoidanceComputer> m_avoidanceComputer;
75 Ptr<BaseShortcutTrajectory> m_shortcutTrajectory;
76 Ptr<SplineTrajectory> m_splineTrajectory;
78 Vec2f m_idealVelocity;
This class is the world element that represent an active character in Autodesk Navigation.
Definition: bot.h:128
TrajectoryMode
Enum that defines the 2 possible Trajectory modes.
Definition: botconfig.h:26
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
2d vector using KyFloat32.
Definition: vec2f.h:18
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
CircleArcSpline with computation information and current position of follow.
Definition: followedcirclearcspline.h:30
This class aggregates all necessary information to describe a position on a LivePath, namely:
Definition: positiononlivepath.h:43
static OutputVelocity ComputeStraightVelocityToTarget(Bot *bot, KyFloat32 simulationTimeInSeconds, const Vec3f &target, Vec3f &outputVelocity)
Compute a velocity to reach a particular target.
Definition: trajectory.cpp:20
This class computes the trajectory either with ShortcutTrajectory or with SplineTrajectory.
Definition: trajectory.h:26
float KyFloat32
float
Definition: types.h:32
3d vector using 32bits floating points.
Definition: vec3f.h:16
ResetTrajectoryStatus
Definition: resettrajectorystatus.h:13