UCharacterMovementComponent::SmoothCorrection

Client hook.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

INetworkPredictionInterface::SmoothCorrection()

UCharacterMovementComponent::SmoothCorrection()

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 SmoothCorrection
(
    const FVector & OldLocation,
    const FQuat & OldRotation,
    const FVector & NewLocation,
    const FQuat & NewRotation
)

Remarks

React to new transform from network update. Sets bNetworkSmoothingComplete to false to ensure future smoothing updates. IMPORTANT: It is expected that this function triggers any movement/transform updates to match the network update if desired.