UAvoidanceManager::RegisterMovementComponent

Register with the given avoidance manager.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/AI/Navigation/AvoidanceManager.h

Include

#include "AI/Navigation/AvoidanceManager.h"

Source

/Engine/Source/Runtime/Engine/Private/AI/Navigation/AvoidanceManager.cpp

Syntax

bool RegisterMovementComponent
(
    class UMovementComponent * MovementComp,
    float AvoidanceWeight
)

Remarks

Register with the given avoidance manager.

Parameters

Parameter

Description

AvoidanceWeight

When avoiding each other, actors divert course in proportion to their relative weights. Range is 0.0 to 1.0. Special: at 1.0, actor will not divert course at all.