cubos::core::ecs::DeltaTime struct

Resource which stores the time since the last iteration of the main loop started.

This resource is added and updated by the Cubos class.

Public functions

auto value() const -> float
Returns the time in seconds, affected by the scale.

Public variables

float unscaledValue
Time in seconds, without any scaling.
float scale
Multiplier which will be used in value().

Function documentation

float cubos::core::ecs::DeltaTime::value() const

Returns the time in seconds, affected by the scale.

Returns Time in seconds.