UCharacterMovementComponent::OnUnableToFollowBaseMove

Event triggered when we are moving on a base but we are not able to move the full DeltaPosition because something has blocked us.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h

Include

#include "GameFramework/CharacterMovementComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/CharacterMovementComponent.cpp

Syntax

virtual void OnUnableToFollowBaseMove
(
    const FVector & DeltaPosition,
    const FVector & OldLocation,
    const FHitResult & MoveOnBaseHit
)

Remarks

Event triggered when we are moving on a base but we are not able to move the full DeltaPosition because something has blocked us.

MoveComponentFlags includes the flag to ignore the movement base while this event is fired.

Parameters

Parameter

Description

DeltaPosition

How far we tried to move with the base.

OldLocation

Location before we tried to move with the base.

MoveOnBaseHit

Hit result for the object we hit when trying to move with the base.