Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtCrowd
Description
Gets the specified agent from the pool.
agents in the pool may not be in use. Check dtCrowdAgent.active before using the returned object.
| Name | getAgent |
| Type | function |
| Header File | /Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourCrowd.h |
| Include Path | #include "DetourCrowd/DetourCrowd.h" |
| Source | /Engine/Source/Runtime/Navmesh/Private/DetourCrowd/DetourCrowd.cpp |
const dtCrowdAgent * getAgent
(
const int idx
)
The requested agent.
Parameters
| Name | Remarks |
|---|---|
| idx | The agent index. [Limits: 0 <= value < getAgentCount()] |