mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +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 = new b2World(Physics::scaleDown(gravity));
|
||||||
world->SetAllowSleeping(sleep);
|
world->SetAllowSleeping(sleep);
|
||||||
world->SetContactListener(this);
|
world->SetContactListener(this);
|
||||||
|
b2BodyDef def;
|
||||||
|
groundBody = world->CreateBody(&def);
|
||||||
}
|
}
|
||||||
|
|
||||||
World::~World()
|
World::~World()
|
||||||
|
|||||||
Reference in New Issue
Block a user