mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Actually create groundBody when creating a World with gravity (i.e. all the time)
--HG-- branch : box2d-update
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user