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

    Interface IEngineDefinition

    interface IEngineDefinition {
        constraintIterations?: number;
        enableSleeping?: boolean;
        grid?: MatterJS.Grid;
        positionIterations?: number;
        timing?: MatterJS.IEngineTimingOptions;
        velocityIterations?: number;
        world?: MatterJS.World;
    }
    Index

    Properties

    constraintIterations?: number

    An integer Number that specifies the number of constraint iterations to perform each update. The higher the value, the higher quality the simulation will be at the expense of performance. The default value of 2 is usually very adequate.

    2
    
    enableSleeping?: boolean

    A flag that specifies whether the engine should allow sleeping via the Matter.Sleeping module. Sleeping can improve stability and performance, but often at the expense of accuracy.

    false
    
    grid?: MatterJS.Grid

    An instance of a broadphase controller. The default value is a Matter.Grid instance created by Engine.create.

    a Matter.Grid instance
    
    positionIterations?: number

    An integer Number that specifies the number of position iterations to perform each update. The higher the value, the higher quality the simulation will be at the expense of performance.

    6
    

    An Object containing properties regarding the timing systems of the engine.

    velocityIterations?: number

    An integer Number that specifies the number of velocity iterations to perform each update. The higher the value, the higher quality the simulation will be at the expense of performance.

    4
    
    world?: MatterJS.World

    A World composite object that will contain all simulated bodies and constraints.

    a Matter.World instance