name | type | arguments | Default | description |
---|---|---|---|---|
isFixed | boolean | <optional> | false |
A boolean that specifies if the runner should use a fixed timestep (otherwise it is variable). If timing is fixed, then the apparent simulation speed will change depending on the frame rate (but behaviour will be deterministic). If the timing is variable, then the apparent simulation speed will be constant (approximately, but at the cost of determininism). |
fps | number | <optional> | 60 |
A number that specifies the frame rate in seconds. If you don't specify this, but do specify |
correction | number | <optional> | 1 |
A number that specifies the time correction factor to apply to the update. This can help improve the accuracy of the simulation in cases where delta is changing between updates. |
deltaSampleSize | number | <optional> | 60 |
The size of the delta smoothing array when |
delta | number | <optional> | 16.666 |
A number that specifies the time step between updates in milliseconds. If you set the |
deltaMin | number | <optional> | 16.666 |
A number that specifies the minimum time step between updates in milliseconds. |
deltaMax | number | <optional> | 33.333 |
A number that specifies the maximum time step between updates in milliseconds. |