OptionalconstraintOptionalenableA 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.
OptionalgridAn instance of a broadphase controller. The default value is a Matter.Grid instance created by Engine.create.
OptionalpositionAn 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.
OptionaltimingAn Object containing properties regarding the timing systems of the engine.
OptionalvelocityAn 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.
OptionalworldA World composite object that will contain all simulated bodies and constraints.
An integer
Numberthat 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 of2is usually very adequate.