Phaser API Documentation

  Version: 
MatterRunnerConfig
Properties:
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 delta, those values set the fps rate.

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 isFixed is false.

delta number <optional> 16.666

A number that specifies the time step between updates in milliseconds. If you set the fps property, this value is set based on that. If isFixed is set to true, then delta is fixed. If it is false, then delta can dynamically change to maintain the correct apparent simulation speed.

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.

Type:
object