0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-12-25 13:39:06 -05:00

Merge pull request #237 from iamjoshua/master

Engine uses provided world; fixes issue #230
This commit is contained in:
Liam 2016-04-18 21:50:00 +01:00
commit b724959501

View file

@ -72,7 +72,7 @@ var Body = require('../body/Body');
engine.render = engine.render.controller.create(engine.render);
}
engine.world = World.create(engine.world);
engine.world = options.world || World.create(engine.world);
engine.pairs = Pairs.create();
engine.broadphase = engine.broadphase.controller.create(engine.broadphase);
engine.metrics = engine.metrics || { extended: false };