dtCrowd::init

Initializes the crowd. May be called more than once to purge and re-initialize the crowd.

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

bool init
(
    const int maxAgents,
    const float maxAgentRadius,
    dtNavMesh * nav
)

Remarks

Initializes the crowd.

May be called more than once to purge and re-initialize the crowd.

Returns

True if the initialization succeeded.

Parameters

Parameter

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.

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