Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/Framework
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/Framework/TimeStep.h |
| Include | #include "Framework/TimeStep.h" |
Syntax
class ITimeStep
Destructors
| Type | Name | Description | |
|---|---|---|---|
~ITimeStep () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | GetActualDt () |
Get how much time actually passed (Dt and any sleeps) mainly for stats. | |
| float | Get the next dt to use in simulation | ||
| float | GetTarget () |
Called to retrieve the target time for the timestep. | |
| void | Reset () |
Reset the timestep to a default state. | |
| void | SetTarget
(
float InTarget |
Called to set a target dt if necessary - derived timesteps can ignore if not needed | |
| void | Update () |
Perform any necessary update to calculate the next timestep, if any sleeps for synchronisation are required also perform them here |