Recast Navigation  1.0.35
dtCrowdAgent Struct Reference

Represents an agent managed by a dtCrowd object. More...

#include <DetourCrowd.h>

Public Attributes

bool active
 True if the agent is active, false if the agent is in an unused slot in the agent pool. More...
 
unsigned char state
 The type of mesh polygon the agent is traversing. (See: CrowdAgentState) More...
 
bool partial
 True if the agent has valid path (targetState == DT_CROWDAGENT_TARGET_VALID) and the path does not lead to the requested position, else false. More...
 
dtPathCorridor corridor
 The path corridor the agent is using. More...
 
dtLocalBoundary boundary
 The local boundary data for the agent. More...
 
float topologyOptTime
 Time since the agent's path corridor was optimized. More...
 
dtCrowdNeighbour neis [DT_CROWDAGENT_MAX_NEIGHBOURS]
 The known neighbors of the agent. More...
 
int nneis
 The number of neighbors. More...
 
float desiredSpeed
 The desired speed. More...
 
float npos [3]
 The current agent position. [(x, y, z)]. More...
 
float disp [3]
 
float dvel [3]
 The desired velocity of the agent. [(x, y, z)]. More...
 
float nvel [3]
 
float vel [3]
 The actual velocity of the agent. [(x, y, z)]. More...
 
dtCrowdAgentParams params
 The agent's configuration parameters. More...
 
float cornerVerts [DT_CROWDAGENT_MAX_CORNERS *3]
 The local path corridor corners for the agent. (Staight path.) [(x, y, z) * ncorners]. More...
 
unsigned char cornerFlags [DT_CROWDAGENT_MAX_CORNERS]
 The local path corridor corner flags. (See: dtStraightPathFlags) [(flags) * ncorners]. More...
 
dtPolyRef cornerPolys [DT_CROWDAGENT_MAX_CORNERS]
 The reference id of the polygon being entered at the corner. [(polyRef) * ncorners]. More...
 
int ncorners
 The number of corners. More...
 
unsigned char targetState
 State of the movement request. More...
 
dtPolyRef targetRef
 Target polyref of the movement request. More...
 
float targetPos [3]
 Target position of the movement request (or velocity in case of DT_CROWDAGENT_TARGET_VELOCITY). More...
 
dtPathQueueRef targetPathqRef
 Path finder ref. More...
 
bool targetReplan
 Flag indicating that the current path is being replanned. More...
 
float targetReplanTime
 

Description

Represents an agent managed by a dtCrowd object.

Member Data Documentation

bool dtCrowdAgent::active

True if the agent is active, false if the agent is in an unused slot in the agent pool.

dtLocalBoundary dtCrowdAgent::boundary

The local boundary data for the agent.

unsigned char dtCrowdAgent::cornerFlags[DT_CROWDAGENT_MAX_CORNERS]

The local path corridor corner flags. (See: dtStraightPathFlags) [(flags) * ncorners].

dtPolyRef dtCrowdAgent::cornerPolys[DT_CROWDAGENT_MAX_CORNERS]

The reference id of the polygon being entered at the corner. [(polyRef) * ncorners].

float dtCrowdAgent::cornerVerts[DT_CROWDAGENT_MAX_CORNERS *3]

The local path corridor corners for the agent. (Staight path.) [(x, y, z) * ncorners].

dtPathCorridor dtCrowdAgent::corridor

The path corridor the agent is using.

float dtCrowdAgent::desiredSpeed

The desired speed.

float dtCrowdAgent::disp[3]
float dtCrowdAgent::dvel[3]

The desired velocity of the agent. [(x, y, z)].

int dtCrowdAgent::ncorners

The number of corners.

The known neighbors of the agent.

int dtCrowdAgent::nneis

The number of neighbors.

float dtCrowdAgent::npos[3]

The current agent position. [(x, y, z)].

float dtCrowdAgent::nvel[3]
dtCrowdAgentParams dtCrowdAgent::params

The agent's configuration parameters.

bool dtCrowdAgent::partial

True if the agent has valid path (targetState == DT_CROWDAGENT_TARGET_VALID) and the path does not lead to the requested position, else false.

unsigned char dtCrowdAgent::state

The type of mesh polygon the agent is traversing. (See: CrowdAgentState)

dtPathQueueRef dtCrowdAgent::targetPathqRef

Path finder ref.

float dtCrowdAgent::targetPos[3]

Target position of the movement request (or velocity in case of DT_CROWDAGENT_TARGET_VELOCITY).

dtPolyRef dtCrowdAgent::targetRef

Target polyref of the movement request.

bool dtCrowdAgent::targetReplan

Flag indicating that the current path is being replanned.

float dtCrowdAgent::targetReplanTime
unsigned char dtCrowdAgent::targetState

State of the movement request.

float dtCrowdAgent::topologyOptTime

Time since the agent's path corridor was optimized.

float dtCrowdAgent::vel[3]

The actual velocity of the agent. [(x, y, z)].


The documentation for this struct was generated from the following file: