The main step method. This is called each time the browser updates, either by Request Animation Frame, or by Set Timeout. It is responsible for calculating the delta values, frame totals, cool down history and more. You generally should never call this method directly.
name | type | description |
---|---|---|
time | number |
The timestamp passed in from RequestAnimationFrame or setTimeout. |