Test compiles with box2d enabled

This commit is contained in:
Ricardo Quesada 2013-09-26 16:23:13 -07:00
parent 34db4dc955
commit cc4695507a
1 changed files with 2 additions and 0 deletions

View File

@ -831,9 +831,11 @@ void TestColliderDetector::initWorld()
space = cpSpaceNew();
space->gravity = cpv(0, 0);
#if CC_ENABLE_CHIPMUNK_INTEGRATION
// Physics debug layer
cocos2d::extension::PhysicsDebugNode *debugLayer = cocos2d::extension::PhysicsDebugNode::create(space);
this->addChild(debugLayer, INT_MAX);
#endif
Size size = bullet->getContentSize();