mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-25 13:39:06 -05:00
Engine uses provided world; fixes issue #230
This commit is contained in:
parent
7eb9ac7fea
commit
158c40425e
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue