Class: TimeStep
timestep.TimeStep
Stores variations of the delta time, the time between each frame/update.
Constructors
constructor
โข new TimeStep(time
, dt
, lastDt
)
Creates an TimeStep.
Parameters
Name | Type | Description |
---|---|---|
time | number | The current time |
dt | number | The current delta time |
lastDt | number | The last delta time |
Defined in
src/timestep.ts:26
Properties
dt
โข dt: number
Defined in
src/timestep.ts:12
dtRatio
โข dtRatio: number
Defined in
src/timestep.ts:14
dtSquared
โข dtSquared: number
Defined in
src/timestep.ts:16
inverseDt
โข inverseDt: number
Defined in
src/timestep.ts:17
lastDt
โข lastDt: number
Defined in
src/timestep.ts:13
time
โข time: number
The time of the start of the timestep in ms since the page loaded.
see
performance.now
Defined in
src/timestep.ts:10