From 4aa3939311d672763d4c1bbd0db72d175b2cca5e Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Sat, 4 Feb 2012 19:07:24 -0500 Subject: [PATCH] Actually register Box2D worlds as contact filters --- src/modules/physics/box2d/World.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/physics/box2d/World.cpp b/src/modules/physics/box2d/World.cpp index af3a23995..13c8ed45b 100644 --- a/src/modules/physics/box2d/World.cpp +++ b/src/modules/physics/box2d/World.cpp @@ -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);