Recast Navigation
Navigation-mesh Toolset for Games
dtObstacleAvoidanceQuery Class Reference

#include <DetourObstacleAvoidance.h>

Public Member Functions

 dtObstacleAvoidanceQuery ()
 
 ~dtObstacleAvoidanceQuery ()
 
bool init (const int maxCircles, const int maxSegments)
 
void reset ()
 
void addCircle (const float *pos, const float rad, const float *vel, const float *dvel)
 
void addSegment (const float *p, const float *q)
 
int sampleVelocityGrid (const float *pos, const float rad, const float vmax, const float *vel, const float *dvel, float *nvel, const dtObstacleAvoidanceParams *params, dtObstacleAvoidanceDebugData *debug=0)
 
int sampleVelocityAdaptive (const float *pos, const float rad, const float vmax, const float *vel, const float *dvel, float *nvel, const dtObstacleAvoidanceParams *params, dtObstacleAvoidanceDebugData *debug=0)
 
int getObstacleCircleCount () const
 
const dtObstacleCirclegetObstacleCircle (const int i)
 
int getObstacleSegmentCount () const
 
const dtObstacleSegmentgetObstacleSegment (const int i)
 

Constructor & Destructor Documentation

◆ dtObstacleAvoidanceQuery()

dtObstacleAvoidanceQuery::dtObstacleAvoidanceQuery ( )

◆ ~dtObstacleAvoidanceQuery()

dtObstacleAvoidanceQuery::~dtObstacleAvoidanceQuery ( )

Member Function Documentation

◆ addCircle()

void dtObstacleAvoidanceQuery::addCircle ( const float *  pos,
const float  rad,
const float *  vel,
const float *  dvel 
)

◆ addSegment()

void dtObstacleAvoidanceQuery::addSegment ( const float *  p,
const float *  q 
)

◆ getObstacleCircle()

const dtObstacleCircle* dtObstacleAvoidanceQuery::getObstacleCircle ( const int  i)
inline

◆ getObstacleCircleCount()

int dtObstacleAvoidanceQuery::getObstacleCircleCount ( ) const
inline

◆ getObstacleSegment()

const dtObstacleSegment* dtObstacleAvoidanceQuery::getObstacleSegment ( const int  i)
inline

◆ getObstacleSegmentCount()

int dtObstacleAvoidanceQuery::getObstacleSegmentCount ( ) const
inline

◆ init()

bool dtObstacleAvoidanceQuery::init ( const int  maxCircles,
const int  maxSegments 
)

◆ reset()

void dtObstacleAvoidanceQuery::reset ( )

◆ sampleVelocityAdaptive()

int dtObstacleAvoidanceQuery::sampleVelocityAdaptive ( const float *  pos,
const float  rad,
const float  vmax,
const float *  vel,
const float *  dvel,
float *  nvel,
const dtObstacleAvoidanceParams params,
dtObstacleAvoidanceDebugData debug = 0 
)

◆ sampleVelocityGrid()

int dtObstacleAvoidanceQuery::sampleVelocityGrid ( const float *  pos,
const float  rad,
const float  vmax,
const float *  vel,
const float *  dvel,
float *  nvel,
const dtObstacleAvoidanceParams params,
dtObstacleAvoidanceDebugData debug = 0 
)

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