I'm doing a Arkanoid/Breakout clone, and I'm having trouble figuring out how to detect when the ball touches the bricks.
My current project has all the bricks (three but I'm using only two for testing) as separate scenes, as well the paddle and the ball. The bricks are static bodies and the paddle and the ball are Kinematic2D bodies.
The problem is when I put all of the scenes above in my "main" scene (the game scene itself). I'm struggling in coming up with ideas to detect the collision and delete the currently hit brick.
I don't know if I should code this in the "main game" script, or in the ball script, or even in the brick script.
A bit lost here, appreciate some help. Thanks.