From b2d054ad50fb4de9f0bba46ad05250dbca65c9c5 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Tue, 12 Oct 2010 21:36:41 +0200 Subject: [PATCH] newWorld(w, h) now actually makes the world w*h, not 4*w*h --- changes.txt | 1 + src/modules/physics/box2d/Physics.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changes.txt b/changes.txt index 6e776c9d0..f8ab3ccd4 100644 --- a/changes.txt +++ b/changes.txt @@ -44,6 +44,7 @@ LOVE 0.7.0 [Game Slave] * Changed fonts, they're now po2 safe. * Changed the traceback in the error screen. * Changed font origin to top-left. + * Changed behavior of love.physics.newWorld(w, h), it now creates a w*h world, not a 4*w*h world. * Removed font functions from love.graphics. diff --git a/src/modules/physics/box2d/Physics.cpp b/src/modules/physics/box2d/Physics.cpp index 58ed34708..50e94db54 100644 --- a/src/modules/physics/box2d/Physics.cpp +++ b/src/modules/physics/box2d/Physics.cpp @@ -57,7 +57,7 @@ namespace box2d World * Physics::newWorld(float w, float h) { - return newWorld(-w, -h, w, h, 0, 0, true); + return newWorld(0, 0, w, h, 0, 0, true); } Body * Physics::newBody(World * world, float x, float y, float mass, float i)