dtCrowd::getAgent

Gets the specified agent from the pool.

Windows
MacOS
Linux

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

Syntax

const dtCrowdAgent * getAgent
(
    const int idx
)

Remarks

Gets the specified agent from the pool.

agents in the pool may not be in use. Check [dtCrowdAgent.active](API\Runtime\Navmesh\DetourCrowd\dtCrowdAgent\active) before using the returned object.

Returns

The requested agent.

Parameters

Parameter

Description

idx

The agent index. [Limits: 0 <= value < getAgentCount()]

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss