ACharacter::OnUpdateSimulatedPosition

Called on client after position update is received to respond to the new location and rotation.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "GameFramework/Character.h"

Source

/Engine/Source/Runtime/Engine/Private/Character.cpp

Syntax

virtual void OnUpdateSimulatedPosition
(
    const FVector & OldLocation,
    const FQuat & OldRotation
)

Remarks

Called on client after position update is received to respond to the new location and rotation. Actual change in location is expected to occur in CharacterMovement->SmoothCorrection(), after which this occurs. Default behavior is to check for penetration in a blocking object if bClientCheckEncroachmentOnNetUpdate is enabled, and set bSimGravityDisabled=true if so.

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