phaser - v4.0.0-rc.4
    Preparing search index...

    Configuration for the Matter Physics Runner.

    Set only one of fps and delta.

    delta is the size of the Runner's fixed time step (one physics update). The "frame delta" is the time elapsed since the last game step. Depending on the size of the frame delta, the Runner makes zero or more updates per game step.

    type MatterRunnerConfig = {
        delta?: number;
        enabled?: boolean;
        fps?: number;
        frameDeltaHistorySize?: number;
        frameDeltaSmoothing?: boolean;
        frameDeltaSnapping?: boolean;
        maxFrameTime?: number;
        maxUpdates?: number;
    }
    Index

    Properties

    delta?: number

    The size of the update time step in milliseconds. If fps is set, it overrides delta.

    enabled?: boolean

    Whether the Matter Runner is enabled.

    fps?: number

    The number of physics updates per second. If set, this overrides delta.

    frameDeltaHistorySize?: number

    The number of frame delta values to record, when smoothing is enabled. The 10th to 90th percentiles are sampled.

    frameDeltaSmoothing?: boolean

    Whether to smooth the frame delta values.

    frameDeltaSnapping?: boolean

    Whether to round the frame delta values to the nearest 1 Hz.

    maxFrameTime?: number

    The maximum amount of time to simulate in one frame, in milliseconds.

    maxUpdates?: number

    The maximum number of updates per frame.