gwnavruntime/pathfollower/iavoidancecomputer.h Source File
Go to the documentation of this file.
28 Avoidance_NoTrajectory
48 Vec2f& avoidanceVelocity,
Vec2f& outputFrontDirection,
bool& collide) = 0;
50 static const char* GetAvoidanceResultString(
AvoidanceResult avoidanceResult)
52 switch(avoidanceResult)
55 return "No avoidance";
65 return "Solution not found";
67 return "Forcing passage";
69 return "Waiting for force passage";
75 static const char* GetAvoidanceResultDescription(
AvoidanceResult avoidanceResult)
77 switch(avoidanceResult)
80 return "The trajectory goes in target direction at the desired speed";
82 return "The trajectory goes in target direction but at lower speed than the desired one";
84 return "The trajectory goes in target direction but at higher speed than the desired one";
86 return "The trajectory deviates from target direction";
88 return "The avoidance computer decided that stopping the Bot is the best solution";
90 return "The avoidance computer was not able to find any collision-free solutions";
92 return "The bot decided to force the passage";
94 return "The bot is required to wait for the force passage timer to expire";
101 virtual bool IsComputationRequiredThisFrame(
Bot* ,
KyFloat32 ) {
return true; }
This class is the world element that represent an active character in Autodesk Navigation.
Definition: bot.h:128
The avoidance computer was not able to find a collision-free solution.
Definition: iavoidancecomputer.h:25
The trajectory goes in target direction at the desired speed.
Definition: iavoidancecomputer.h:20
Waiting for force passage.
Definition: iavoidancecomputer.h:27
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
AvoidanceResult
Enumerates the possible results of a call to IAvoidanceComputer::Compute().
Definition: iavoidancecomputer.h:18
2d vector using KyFloat32.
Definition: vec2f.h:18
The trajectory deviates from target direction.
Definition: iavoidancecomputer.h:23
The trajectory goes in target direction but at higher speed than the desired one. ...
Definition: iavoidancecomputer.h:22
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
This interface class defines the way avoidance is computed.
Definition: iavoidancecomputer.h:34
Currently forcing the passage.
Definition: iavoidancecomputer.h:26
The avoidance computer decided that stopping the Bot is the best solution.
Definition: iavoidancecomputer.h:24
The trajectory goes in target direction but at lower speed than the desired one.
Definition: iavoidancecomputer.h:21
float KyFloat32
float
Definition: types.h:32