diff --git a/src/body/World.js b/src/body/World.js index 12d1d07..a500a79 100644 --- a/src/body/World.js +++ b/src/body/World.js @@ -31,8 +31,8 @@ var World = {}; label: 'World', gravity: { x: 0, y: 1 }, bounds: { - min: { x: 0, y: 0 }, - max: { x: 800, y: 600 } + min: { x: -Infinity, y: -Infinity }, + max: { x: Infinity, y: Infinity } } }; diff --git a/src/core/Engine.js b/src/core/Engine.js index c4b3bb0..27c73e6 100644 --- a/src/core/Engine.js +++ b/src/core/Engine.js @@ -312,11 +312,6 @@ var Engine = {}; if (body.isStatic || body.isSleeping) continue; - // don't update out of world bodies - if (body.bounds.max.x < worldBounds.min.x || body.bounds.min.x > worldBounds.max.x - || body.bounds.max.y < worldBounds.min.y || body.bounds.min.y > worldBounds.max.y) - continue; - Body.update(body, deltaTime, timeScale, correction); } };