dtCrowd::setAgentCorridor

[UE4] Set agent corridor, works only just after requesting move target when agent didn't start any pathfinding operations yet Use with caution!

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 setAgentCorridor
(
    const int idx,
    const dtPolyRef * path,
    const int npath
)

Remarks

[UE4] Set agent corridor, works only just after requesting move target when agent didn't start any pathfinding operations yet Use with caution!

Parameters

Parameter

Description

idx

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

path

The path corridor. [(polyRef) * npolys]

npath

The number of polygons in the path.

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