Skip to content

Commit

Permalink
Merge pull request #237 from iamjoshua/master
Browse files Browse the repository at this point in the history
Engine uses provided world; fixes issue #230
  • Loading branch information
liabru committed Apr 18, 2016
2 parents 7eb9ac7 + 158c404 commit b724959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit b724959

Please sign in to comment.