Actually register Box2D worlds as contact filters

This commit is contained in:
Bill Meltsner
2012-02-04 19:07:24 -05:00
parent 2a88ed1fa5
commit 4aa3939311
+2
View File
@@ -205,6 +205,7 @@ namespace box2d
this->retain(); // The Box2D world holds a reference to this World.
world->SetAllowSleeping(true);
world->SetContactListener(this);
world->SetContactFilter(this);
world->SetDestructionListener(this);
b2BodyDef def;
groundBody = world->CreateBody(&def);
@@ -219,6 +220,7 @@ namespace box2d
this->retain();
world->SetAllowSleeping(sleep);
world->SetContactListener(this);
world->SetContactFilter(this);
world->SetDestructionListener(this);
b2BodyDef def;
groundBody = world->CreateBody(&def);