I will have 2 teams in my game, every team has X balls, I want to detect when they collide, not to apply force or impulse but to apply "Damage" to the affected balls.
I've read about contactListener but then you have to check wether it is from team A or B or same team and so on.. the thing is I want to use filters as I've read somewhere, but I can't decide what happens when they collide, it's like they will react depending on their density, friction and so on, but I want to detect collision and apply what I want instead.
I'm using libgdx with box2d