auto contactListener = EventListenerPhysicsContact::create();
contactListener->onContactBegin = CC_CALLBACK_1(GameStartLayer::onContactBegin, this);
this->getEventDispatcher()->addEventListenerWithSceneGraphPriority(contactListener, this);
设置了监听,mask值已经设置
body->setCategoryBitmask(1);
body->setCollisionBitmask(-1);
body->setContactTestBitmask(-1);
碰撞已经产生,可是为什么进不了监听函数?