Recast Navigation
Navigation-mesh Toolset for Games
dtObstacleAvoidanceDebugData Class Reference

#include <DetourObstacleAvoidance.h>

Public Member Functions

 dtObstacleAvoidanceDebugData ()
 
 ~dtObstacleAvoidanceDebugData ()
 
bool init (const int maxSamples)
 
void reset ()
 
void addSample (const float *vel, const float ssize, const float pen, const float vpen, const float vcpen, const float spen, const float tpen)
 
void normalizeSamples ()
 
int getSampleCount () const
 
const float * getSampleVelocity (const int i) const
 
float getSampleSize (const int i) const
 
float getSamplePenalty (const int i) const
 
float getSampleDesiredVelocityPenalty (const int i) const
 
float getSampleCurrentVelocityPenalty (const int i) const
 
float getSamplePreferredSidePenalty (const int i) const
 
float getSampleCollisionTimePenalty (const int i) const
 

Constructor & Destructor Documentation

◆ dtObstacleAvoidanceDebugData()

dtObstacleAvoidanceDebugData::dtObstacleAvoidanceDebugData ( )

◆ ~dtObstacleAvoidanceDebugData()

dtObstacleAvoidanceDebugData::~dtObstacleAvoidanceDebugData ( )

Member Function Documentation

◆ addSample()

void dtObstacleAvoidanceDebugData::addSample ( const float *  vel,
const float  ssize,
const float  pen,
const float  vpen,
const float  vcpen,
const float  spen,
const float  tpen 
)

◆ getSampleCollisionTimePenalty()

float dtObstacleAvoidanceDebugData::getSampleCollisionTimePenalty ( const int  i) const
inline

◆ getSampleCount()

int dtObstacleAvoidanceDebugData::getSampleCount ( ) const
inline

◆ getSampleCurrentVelocityPenalty()

float dtObstacleAvoidanceDebugData::getSampleCurrentVelocityPenalty ( const int  i) const
inline

◆ getSampleDesiredVelocityPenalty()

float dtObstacleAvoidanceDebugData::getSampleDesiredVelocityPenalty ( const int  i) const
inline

◆ getSamplePenalty()

float dtObstacleAvoidanceDebugData::getSamplePenalty ( const int  i) const
inline

◆ getSamplePreferredSidePenalty()

float dtObstacleAvoidanceDebugData::getSamplePreferredSidePenalty ( const int  i) const
inline

◆ getSampleSize()

float dtObstacleAvoidanceDebugData::getSampleSize ( const int  i) const
inline

◆ getSampleVelocity()

const float* dtObstacleAvoidanceDebugData::getSampleVelocity ( const int  i) const
inline

◆ init()

bool dtObstacleAvoidanceDebugData::init ( const int  maxSamples)

◆ normalizeSamples()

void dtObstacleAvoidanceDebugData::normalizeSamples ( )

◆ reset()

void dtObstacleAvoidanceDebugData::reset ( )

The documentation for this class was generated from the following files: