dtPathCorridor::setCorridor

Loads a new path and target into the corridor.

Windows
MacOS
Linux

Warnings

  • The size of the path must not exceed the size of corridor's path buffer set during init().

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourPathCorridor.h

Include

#include "DetourCrowd/DetourPathCorridor.h"

Source

/Engine/Source/Runtime/Navmesh/Private/DetourCrowd/DetourPathCorridor.cpp

Syntax

void setCorridor
(
    const float * target,
    const dtPolyRef * polys,
    const int npath
)

Remarks

Loads a new path and target into the corridor.

The current corridor position is expected to be within the first polygon in the path. The target is expected to be in the last polygon.

The size of the path must not exceed the size of corridor's path buffer set during init().

Parameters

Parameter

Description

target

The target location within the last polygon of the path. [(x, y, z)]

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