views:

38

answers:

1

I am using cocos2d and box2d in my iPhone game.

When two balls hit each other, I get a notification though the ContactListener and I have a reference to both bodies.

I can destroy both of them, but I would like to do it with a delay.

So, two balls hit each other, they bounce off and then after a second disappear.

A: 

Start a timer in the BeginContact or EndContact and remove the Body then.

Shohair