dtCrowdAgent

Represents an agent managed by a [dtCrowd](API\Runtime\Navmesh\DetourCrowd\dtCrowd) object.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourCrowd.h

Include

#include "DetourCrowd/DetourCrowd.h"

Syntax

struct dtCrowdAgent

Remarks

Represents an agent managed by a dtCrowd object.

Variables

Name Description

Public variable

unsigned char

 

active

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

Public variable

dtLocalBoundary

 

boundary

The local boundary data for the agent.

Public variable

unsigned char[D...

 

cornerFlags

The local path corridor corner flags. (See: dtStraightPathFlags) [(flags) * [ncorners](API\Runtime\Navmesh\DetourCrowd\dtCrowdAgent\ncorners)].

Public variable

dtPolyRef[DT_CR...

 

cornerPolys

The reference id of the polygon being entered at the corner. [(polyRef) * [ncorners](API\Runtime\Navmesh\DetourCrowd\dtCrowdAgent\ncorners)].

Public variable

float[DT_CROWDA...

 

cornerVerts

The local path corridor corners for the agent. (Staight path.) [(x, y, z) * [ncorners](API\Runtime\Navmesh\DetourCrowd\dtCrowdAgent\ncorners)].

Public variable

dtPathCorridor

 

corridor

The path corridor the agent is using.

Public variable

float

 

desiredSpeed

The desired speed.

Public variable

float[3]

 

disp

Public variable

float[3]

 

dvel

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

Public variable

int

 

ncorners

The number of corners.

Public variable

dtCrowdNeighbou...

 

neis

The known neighbors of the agent.

Public variable

int

 

nneis

The number of neighbors.

Public variable

float[3]

 

npos

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

Public variable

float[3]

 

nvel

Public variable

dtCrowdAgentPar...

 

params

The agent's configuration parameters.

Public variable

unsigned char

 

state

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

Public variable

dtPathQueueRef

 

targetPathqRef

Path finder ref.

Public variable

float[3]

 

targetPos

Public variable

dtPolyRef

 

targetRef

Target polyref of the movement request.

Public variable

unsigned char

 

targetReplan

Flag indicating that the current path is being replanned.

Public variable

float

 

targetReplanTime

Public variable

unsigned char

 

targetState

State of the movement request.

Public variable

float

 

topologyOptTime

Time since the agent's path corridor was optimized.

Public variable

float[3]

 

vel

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss