dtCrowd::requestMoveTarget

Submits a new move request for the specified agent.

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 requestMoveTarget
(
    const int idx,
    dtPolyRef ref,
    const float * pos
)

Remarks

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().

Returns

True if the request was successfully submitted.

Parameters

Parameter

Description

idx

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

ref

The position's polygon reference.

pos

The position within the polygon. [(x, y, z)]

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