Navigation
API > API/Runtime > API/Runtime/Navmesh > API/Runtime/Navmesh/dtCrowd
Description
Submits a new move request for the specified agent.
This method is used when a new target is set.
The position will be constrained to the surface of the navigation mesh.
The request will be processed during the next update().
| Name | requestMoveTarget |
| 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 |
bool requestMoveTarget
(
const int idx,
dtPolyRef ref,
const dtReal * pos
)
True if the request was successfully submitted.
Parameters
| Name | Remarks |
|---|---|
| idx | The agent index. [Limits: 0 <= value < getAgentCount()] |
| ref | The position's polygon reference. |
| pos | The position within the polygon. [(x, y, z)] |