FNetworkPredictionData_Client_Character::UpdateTimeStampAndDeltaTime

Update CurentTimeStamp from passed in DeltaTime.

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

float UpdateTimeStampAndDeltaTime
(
    float DeltaTime,
    ACharacter & CharacterOwner,
    class UCharacterMovementComponent & CharacterMovementComponent
)

Remarks

Update CurentTimeStamp from passed in DeltaTime. It will measure the accuracy between passed in DeltaTime and how Server will calculate its DeltaTime. If inaccuracy is too high, it will reset CurrentTimeStamp to maintain a high level of accuracy.

Returns

DeltaTime to use for Client's physics simulation prior to replicate move to server.

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