-
Notifications
You must be signed in to change notification settings - Fork 0
time_system::time_scale
Paweł Waligóra edited this page May 4, 2024
·
4 revisions
Variable that defines how fast is the time passing;
If time_system::time_scale == 1.0f, then game is running real time.
If 0.0f < time_system::time_scale < 1.0f, then game is running in slow motion
If time_system::time_scale > 1.0f, then game is sped up.
If time_system::time_scale == 0.0f, then game is paused.
If time_system::time_scale < 0.0f then undefined behaviour.
| value | effect |
|---|---|
| >1.0f | sped up |
| 1.0f | normal speed |
| (0.0f ; 1.0f) | slow motion |
| 0.0f | paused |
| <0.0f | undefined behaviour |
Just write to time_system::time_scale any value greater or equal to 0.0f at any point in application.
- engine
- scripts_system
- scene_loader
- time_system
-
input_system
- input_system::key_held
- input_system::key_events
- input_system::subscribe() (deprecated)
- input_system::axis_state()
- input_system::key_bind
- input_system::axis
- input_system::double_axis
- input_system::triple_axis
- input_system::axis2
- input_system::double_axis2
- input_system::triple_axis2
- input_system::axis-choice
- renderer
- physics
- ui_system
- game