Navigation
Unreal Engine C++ API Reference > Runtime > Navmesh > DetourCrowd > dtCrowd
References
Module | Navmesh |
Header | /Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourCrowd.h |
Include | #include "DetourCrowd/DetourCrowd.h" |
Source | /Engine/Source/Runtime/Navmesh/Private/DetourCrowd/DetourCrowd.cpp |
bool init
&40;
const int maxAgents,
const dtReal maxAgentRadius,
dtNavMesh &42; nav
&41;
Remarks
Initializes the crowd.
May be called more than once to purge and re-initialize the crowd. True if the initialization succeeded.
Parameters
Name | Description |
---|---|
maxAgents | The maximum number of agents the crowd can manage. [Limit: >= 1] |
maxAgentRadius | The maximum radius of any agent that will be added to the crowd. [Limit: > 0] |
nav | The navigation mesh to use for planning. |