ITimeStep

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Framework/TimeStep.h

Include

#include "Framework/TimeStep.h"

Syntax

class ITimeStep

Destructors

Name Description

Public function Virtual

~ITimeStep()

Functions

Name Description

Public function Virtual Const

float

 

GetActualDt()

Get how much time actually passed (Dt and any sleeps) mainly for stats.

Public function Const

float

 

GetCalculatedDt()

Get the next dt to use in simulation

Public function Virtual Const

float

 

GetTarget()

Called to retrieve the target time for the timestep.

Public function Virtual

void

 

Reset()

Reset the timestep to a default state.

Public function Virtual

void

 

SetTarget

(
    float InTarget
)

Called to set a target dt if necessary - derived timesteps can ignore if not needed

Public function

void

 

Update()

Perform any necessary update to calculate the next timestep, if any sleeps for synchronisation are required also perform them here

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