UCharacterMovementComponent::SmoothCorrection

Client hook.

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss