I'm working on a pinball game, and when you begin you launch the ball with a plunger and it rolls on the table through a loop. And then it doesn't collide with the loop anymore, now I got that working with changing the groupIndex of the ball.
Here's a picture of how my table looks like:

The purple outline is the collision map of the table. When the ball get's launched high enough it will collides with the blue circle and then the filter index of the ball will change so it does collide with the loop, but not with the table's collision map. And then when it collides with the red circle the ball's filter index gets changed again so it does collide with the table's collision map but not with the loop.
Now the problem is that when the paddle(highlighted with the yellow circle) doesn't have the same groupIndex as the loop it will collide with the loop. But when that paddle does have the same groupIndex as the loop, the ball will not collide with the paddle anymore because it also has the same negative groupIndex as the loop. Because we don't want the ball to collide with the loop anymore when it has left the loop(collided with the red circle).
So how can I fix this? I have to chance the filter index of the ball to get it collide with the loop, but not the collision map of the table. And I have to let it collide with the collision map again when it left the loop. And the paddle should never collide with the loop.
I really hope someone can help me with this.
Here's a picture of how my table looks like:

The purple outline is the collision map of the table. When the ball get's launched high enough it will collides with the blue circle and then the filter index of the ball will change so it does collide with the loop, but not with the table's collision map. And then when it collides with the red circle the ball's filter index gets changed again so it does collide with the table's collision map but not with the loop.
Now the problem is that when the paddle(highlighted with the yellow circle) doesn't have the same groupIndex as the loop it will collide with the loop. But when that paddle does have the same groupIndex as the loop, the ball will not collide with the paddle anymore because it also has the same negative groupIndex as the loop. Because we don't want the ball to collide with the loop anymore when it has left the loop(collided with the red circle).
So how can I fix this? I have to chance the filter index of the ball to get it collide with the loop, but not the collision map of the table. And I have to let it collide with the collision map again when it left the loop. And the paddle should never collide with the loop.
I really hope someone can help me with this.