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 |
int addAgent
&40;
const dtReal &42; pos,
const dtCrowdAgentParams & params,
const dtQueryFilter &42; filter
&41;
Remarks
Adds a new agent to the crowd.
The agent's position will be constrained to the surface of the navigation mesh. The index of the agent in the agent pool. Or -1 if the agent could not be added.
Parameters
Name | Description |
---|---|
pos | The requested position of the agent. [(x, y, z)] |
params | The configutation of the agent. |
filter | [UE] query filter used by agent |