Actually create groundBody when creating a World with gravity (i.e. all the time)

--HG--
branch : box2d-update
This commit is contained in:
Bill Meltsner
2011-09-24 01:16:34 -04:00
parent 2c761fc701
commit 542ae2f736
+2
View File
@@ -133,6 +133,8 @@ namespace box2d
world = new b2World(Physics::scaleDown(gravity));
world->SetAllowSleeping(sleep);
world->SetContactListener(this);
b2BodyDef def;
groundBody = world->CreateBody(&def);
}
World::~World()