Methods
getElapsedTime()
Return the time elapsed since the last call to update (i.e: the last frame), in milliseconds.
- Source:
getTimeFromStart()
Get the time since the instanciation of the manager (i.e: since the beginning of the scene most of the time), in milliseconds.
- Source:
getTimeScale()
Get the time scale.
Returns:
Type | Description |
---|---|
The time scale (positive, 1 is normal speed). |
- Source:
isFirstFrame()
Return true if update was called only once (i.e: if the scene is rendering its first frame).
- Source:
setTimeScale(timeScale)
Set the time scale: time will be slower if time scale is < 1, faster if > 1.
Parameters:
Name | Type | Description |
---|---|---|
timeScale |
The new time scale (must be positive). |
- Source: