dtCrowd::setObstacleAvoidancePattern

[UE4] Sets 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

void setObstacleAvoidancePattern
(
    int idx,
    const float * angles,
    const float * radii,
    int nsamples
)

Remarks

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

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