Recast Navigation
Navigation-mesh Toolset for Games
NavMeshTesterTool.cpp File Reference
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
#include "SDL_opengl.h"
#include <GL/glu.h>
#include "imgui.h"
#include "NavMeshTesterTool.h"
#include "Sample.h"
#include "Recast.h"
#include "RecastDebugDraw.h"
#include "DetourNavMesh.h"
#include "DetourNavMeshBuilder.h"
#include "DetourDebugDraw.h"
#include "DetourCommon.h"
#include "DetourPathCorridor.h"

Macros

#define DUMP_REQS
 

Functions

static float frand ()
 
bool inRange (const float *v1, const float *v2, const float r, const float h)
 
static int fixupShortcuts (dtPolyRef *path, int npath, dtNavMeshQuery *navQuery)
 
static bool getSteerTarget (dtNavMeshQuery *navQuery, const float *startPos, const float *endPos, const float minTargetDist, const dtPolyRef *path, const int pathSize, float *steerPos, unsigned char &steerPosFlag, dtPolyRef &steerPosRef, float *outPoints=0, int *outPointCount=0)
 
static void getPolyCenter (dtNavMesh *navMesh, dtPolyRef ref, float *center)
 

Macro Definition Documentation

◆ DUMP_REQS

#define DUMP_REQS

Function Documentation

◆ fixupShortcuts()

static int fixupShortcuts ( dtPolyRef path,
int  npath,
dtNavMeshQuery navQuery 
)
static

◆ frand()

static float frand ( )
static

◆ getPolyCenter()

static void getPolyCenter ( dtNavMesh navMesh,
dtPolyRef  ref,
float *  center 
)
static

◆ getSteerTarget()

static bool getSteerTarget ( dtNavMeshQuery navQuery,
const float *  startPos,
const float *  endPos,
const float  minTargetDist,
const dtPolyRef path,
const int  pathSize,
float *  steerPos,
unsigned char &  steerPosFlag,
dtPolyRef steerPosRef,
float *  outPoints = 0,
int *  outPointCount = 0 
)
static

◆ inRange()

bool inRange ( const float *  v1,
const float *  v2,
const float  r,
const float  h 
)
inline