cocos2dx 3.0 rc2 碰撞检测监听不生效 求助

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);

碰撞已经产生,可是为什么进不了监听函数?

两个碰撞的物体都需要设置body->setContactTestBitmask(-1);