Real To Game Time

Pure
RealToGameTime

Converts real-world time to game time using a time scale multiplier.

Type: Pure (no side effects)
Category: Fortuna|Time & Date
Keywords: time & date

Inputs

NameTypeDefaultDescription
RealSecondsfloatRealSeconds parameter
TimeScalefloatTimeScale parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

A game where 1 real minute = 1 game hour.

Example 2

Scale time for fast-forwarding in a simulation.