UCharacterMovementComponent::RevertMove

Revert to previous position OldLocation, return to being based on OldBase.

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

void RevertMove
(
    const FVector & OldLocation,
    UPrimitiveComponent * OldBase,
    const FVector & InOldBaseLocation,
    const FFindFloorResult & OldFloor,
    bool bFailMove
)

Remarks

Revert to previous position OldLocation, return to being based on OldBase. if bFailMove, stop movement and notify controller