mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-23 09:26:51 -05:00
Merge pull request #237 from iamjoshua/master
Engine uses provided world; fixes issue #230
This commit is contained in:
commit
b724959501
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.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.pairs = Pairs.create();
|
||||||
engine.broadphase = engine.broadphase.controller.create(engine.broadphase);
|
engine.broadphase = engine.broadphase.controller.create(engine.broadphase);
|
||||||
engine.metrics = engine.metrics || { extended: false };
|
engine.metrics = engine.metrics || { extended: false };
|
||||||
|
|
Loading…
Reference in a new issue