PathFollowResult

C++
struct PathFollowResult {
  struct SPredictedState {
    Vec3 pos;
    Vec3 vel;
  };
  float desiredPredictionTime;
  float predictionDeltaTime;
  TPredictedStates * predictedStates;
  bool reachedEnd;
  Vec3 velocityOut;
  Vec3 followTargetPos;
  Vec3 inflectionPoint;
};
File

IPathfinder.h

PathFollowResult::SPredictedState Structure
C++
struct SPredictedState {
  Vec3 pos;
  Vec3 vel;
};
File

IPathfinder.h

PathFollowResult::SPredictedState::pos Data Member
C++
Vec3 pos;
PathFollowResult::SPredictedState::vel Data Member
C++
Vec3 vel;
PathFollowResult::SPredictedState::SPredictedState Constructor ()
C++
SPredictedState();
PathFollowResult::SPredictedState::SPredictedState Constructor (Vec3 &, Vec3 &)
C++
SPredictedState(const Vec3 & p, const Vec3 & v);
PathFollowResult::desiredPredictionTime Data Member
C++
float desiredPredictionTime;
Description

maximum time to predict out to - actual prediction may not go this far

PathFollowResult::followTargetPos Data Member
C++
Vec3 followTargetPos;
Notes

If the turningPoint and inflectionPoint are equal, they represent the end of the path. The furthest point on the path we can move directly towards without colliding with anything

PathFollowResult::inflectionPoint Data Member
C++
Vec3 inflectionPoint;
Description

The next point on the path beyond the follow target that deviates substantially from a straight-line path

PathFollowResult::predictedStates Data Member
C++
TPredictedStates * predictedStates;
Description

if this is non-zero then on output the prediction will be placed into it

PathFollowResult::predictionDeltaTime Data Member
C++
float predictionDeltaTime;
Description

the first element in predictedStates will be now + predictionDeltaTime, etc

PathFollowResult::reachedEnd Data Member
C++
bool reachedEnd;
PathFollowResult::velocityOut Data Member
C++
Vec3 velocityOut;
PathFollowResult::PathFollowResult Constructor
C++
PathFollowResult();
PathFollowResult::TPredictedStates Nested Type
C++
typedef DynArray<SPredictedState> TPredictedStates;