Want label to display on ball collision in box2d

Hello,

I'm using _world->step(dt,5,5) to detect the collision system. So collision is actually getting handled by box2d classes. Now I want to show score on balls collision depending on to which ball it has collide? I don't want code to handle collission it's already getting handled by step method. But I want to know how to show label whenever collission happens. Do I need to make changes in box2D classes? Or any any other method??

Can any one please help me out with this? If you guys want I can provide source code of tick function if required.

Your help is appreciated.

Thank you,

Ankita

Original thread: https://box2d.org/forum/viewtopic.php?t=6784