dtCrowd::getObstacleAvoidancePattern

[UE4] Gets the shared avoidance sampling pattern for the specified index.

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 getObstacleAvoidancePattern
(
    int idx,
    float * angles,
    float * radii,
    int * nsamples
)

Remarks

[UE4] Gets the shared avoidance sampling pattern for the specified index.

Returns

true if pattern was found

Parameters

Parameter

Description

idx

The index.

angles

radians from direction of desired velocity [Count: nsamples]

radii

normalized radii (0..1) for each sample [Count: nsamples]

nsamples

The number of samples

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