What would be the best way to temporarily disable a "body" for collision?
I'll describe the situation - I have this "peggle" style game where the ball may collide with a barrel's edges at the bottom of the screen.
In the attached mockup picture, you can see the two "cyan" kinematic boxes that "tracks" to the barrel's movement (these are manually moved according to the Sprite's x & y position).
If the ball touches the boxes, I give an Impulse to the ball, and also move it up slightly (to guarantee it only touches the barrel for one frame and bounce off of it).
However, if the ball touches on the exterior edges of the boxes (outside of the barrel, while the barrel is moving fast in the same direction as the ball), the ball "sticks" to the box until either the barrel slows-down, stops or starts moving in the opposite direction.
So I figure, maybe I should just ignore any collisions on the kinematic boxes if the ball is greater-than > a certain y-position on the stage.
But how do I disable their collisions? Do I have to change their CbType's? Their InteractionFilters? the CollisionGroup / CollisionMask?
Also, I intend to use a sensor inside in middle of the Barrel. At that point I guess I can either just not run the simulation, but it would be nice to know if Sensors can be disabled as well.
Thanks!
-Pierre