UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
dtCrowdAgent Struct Reference

#include <DetourCrowd.h>

Public Attributes

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

Detailed Description

Represents an agent managed by a dtCrowd object.

Member Data Documentation

◆ active

unsigned char dtCrowdAgent::active

1 if the agent is active, or 0 if the agent is in an unused slot in the agent pool.

◆ boundary

dtLocalBoundary dtCrowdAgent::boundary

The local boundary data for the agent.

◆ cornerFlags

unsigned char dtCrowdAgent::cornerFlags[DT_CROWDAGENT_MAX_CORNERS]

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

◆ cornerPolys

dtPolyRef dtCrowdAgent::cornerPolys[DT_CROWDAGENT_MAX_CORNERS]

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

◆ cornerVerts

dtReal dtCrowdAgent::cornerVerts[DT_CROWDAGENT_MAX_CORNERS *3]

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

◆ corridor

dtPathCorridor dtCrowdAgent::corridor

The path corridor the agent is using.

◆ desiredSpeed

dtReal dtCrowdAgent::desiredSpeed

The desired speed.

◆ disp

dtReal dtCrowdAgent::disp[3]

◆ dvel

dtReal dtCrowdAgent::dvel[3]

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

◆ ncorners

int dtCrowdAgent::ncorners

The number of corners.

◆ neis

dtCrowdNeighbour dtCrowdAgent::neis[DT_CROWDAGENT_MAX_NEIGHBOURS]

The known neighbors of the agent.

◆ nneis

int dtCrowdAgent::nneis

The number of neighbors.

◆ npos

dtReal dtCrowdAgent::npos[3]

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

◆ nvel

dtReal dtCrowdAgent::nvel[3]

◆ params

dtCrowdAgentParams dtCrowdAgent::params

The agent's configuration parameters.

◆ state

unsigned char dtCrowdAgent::state

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

◆ targetPathqRef

dtPathQueueRef dtCrowdAgent::targetPathqRef

Path finder ref.

◆ targetPos

dtReal dtCrowdAgent::targetPos[3]

<Time since the agent's target was replanned.

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

◆ targetRef

dtPolyRef dtCrowdAgent::targetRef

Target polyref of the movement request.

◆ targetReplan

unsigned char dtCrowdAgent::targetReplan

Flag indicating that the current path is being replanned.

◆ targetReplanTime

dtReal dtCrowdAgent::targetReplanTime

◆ targetState

unsigned char dtCrowdAgent::targetState

State of the movement request.

◆ topologyOptTime

dtReal dtCrowdAgent::topologyOptTime

Time since the agent's path corridor was optimized.

◆ vel

dtReal dtCrowdAgent::vel[3]

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


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