i create simple game like flapy bird with cocos2d v3 . Interface class:
@interface GameScene : CCScene
// ------------------
Change
-(BOOL)ccPhysicsCollisionBegin:(CCPhysicsCollisionPair *)pair typeA:(CCNode *)nodeA typeB:(CCNode *)nodeB{
To:
-(BOOL)ccPhysicsCollisionBegin:(CCPhysicsCollisionPair *)pair tubeCollision:(CCNode *)nodeA birdCollision:(CCNode *)nodeB{
You have the example code of the collision delegate, so you have to adapt it to your code with your nodeA that is the tube and nodeB the bird.