RealDocs

UCharacterMovementComponent::AvoidanceWeight

property Engine Blueprint Since 4.0
#include "GameFramework/CharacterMovementComponent.h"
Access: public Specifiers: UPROPERTYEditAnywhereBlueprintReadOnly

Description

Relative priority this character gives its own path versus yielding to other agents in RVO avoidance calculations.

Caveats & Gotchas

  • Default is 0.5, meaning this agent and others share responsibility for avoiding collisions equally; higher values make this character yield less to others.
  • Only has an effect while the character is registered with an avoidance manager — see GetAvoidanceManager().

Signature

float AvoidanceWeight

Example

Make this character yield less than others C++
GetCharacterMovement()->AvoidanceWeight = 0.75f;

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.