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