mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-24 09:36:48 -05:00
17 lines
374 B
JavaScript
17 lines
374 B
JavaScript
|
(function() {
|
||
|
|
||
|
var Engine = Matter.Engine;
|
||
|
|
||
|
Example.engine = function(demo) {
|
||
|
// some example engine options
|
||
|
var options = {
|
||
|
positionIterations: 6,
|
||
|
velocityIterations: 4,
|
||
|
enableSleeping: false,
|
||
|
metrics: { extended: true }
|
||
|
};
|
||
|
|
||
|
return Engine.create(demo.container, options);
|
||
|
};
|
||
|
|
||
|
})();
|