Skip to content

Commit

Permalink
Engine uses provided world; fixes issue #230
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoshua committed Apr 18, 2016
1 parent 7eb9ac7 commit 158c404
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 158c404

Please sign in to comment.