Recast Navigation
Navigation-mesh Toolset for Games
DetourCrowd.h File Reference

Go to the source code of this file.

Classes

struct  dtCrowdNeighbour
 Provides neighbor data for agents managed by the crowd. More...
 
struct  dtCrowdAgentParams
 Configuration parameters for a crowd agent. More...
 
struct  dtCrowdAgent
 Represents an agent managed by a dtCrowd object. More...
 
struct  dtCrowdAgentAnimation
 
struct  dtCrowdAgentDebugInfo
 
class  dtCrowd
 Provides local steering behaviors for a group of agents. More...
 

Enumerations

enum  CrowdAgentState { DT_CROWDAGENT_STATE_INVALID , DT_CROWDAGENT_STATE_WALKING , DT_CROWDAGENT_STATE_OFFMESH }
 The type of navigation mesh polygon the agent is currently traversing. More...
 
enum  MoveRequestState {
  DT_CROWDAGENT_TARGET_NONE = 0 , DT_CROWDAGENT_TARGET_FAILED , DT_CROWDAGENT_TARGET_VALID , DT_CROWDAGENT_TARGET_REQUESTING ,
  DT_CROWDAGENT_TARGET_WAITING_FOR_QUEUE , DT_CROWDAGENT_TARGET_WAITING_FOR_PATH , DT_CROWDAGENT_TARGET_VELOCITY
}
 
enum  UpdateFlags {
  DT_CROWD_ANTICIPATE_TURNS = 1 , DT_CROWD_OBSTACLE_AVOIDANCE = 2 , DT_CROWD_SEPARATION = 4 , DT_CROWD_OPTIMIZE_VIS = 8 ,
  DT_CROWD_OPTIMIZE_TOPO = 16
}
 Crowd agent update flags. More...
 

Functions

dtCrowddtAllocCrowd ()
 Allocates a crowd object using the Detour allocator. More...
 
void dtFreeCrowd (dtCrowd *ptr)
 Frees the specified crowd object using the Detour allocator. More...
 

Variables

static const int DT_CROWDAGENT_MAX_NEIGHBOURS = 6
 The maximum number of neighbors that a crowd agent can take into account for steering decisions. More...
 
static const int DT_CROWDAGENT_MAX_CORNERS = 4
 The maximum number of corners a crowd agent will look ahead in the path. More...
 
static const int DT_CROWD_MAX_OBSTAVOIDANCE_PARAMS = 8
 The maximum number of crowd avoidance configurations supported by the crowd manager. More...
 
static const int DT_CROWD_MAX_QUERY_FILTER_TYPE = 16
 The maximum number of query filter types supported by the crowd manager. More...
 

Enumeration Type Documentation

◆ MoveRequestState

Enumerator
DT_CROWDAGENT_TARGET_NONE 
DT_CROWDAGENT_TARGET_FAILED 
DT_CROWDAGENT_TARGET_VALID 
DT_CROWDAGENT_TARGET_REQUESTING 
DT_CROWDAGENT_TARGET_WAITING_FOR_QUEUE 
DT_CROWDAGENT_TARGET_WAITING_FOR_PATH 
DT_CROWDAGENT_TARGET_VELOCITY