diff --git a/src/core/Engine.js b/src/core/Engine.js index b549f66..40df471 100644 --- a/src/core/Engine.js +++ b/src/core/Engine.js @@ -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 };