Hi folks, I got stuck with my little breakout game. The problem is the ball/brick hit detection. It should detect WHAT part of the brick has been hit (corner, side, top or bottom) -while the ball speed, brick size and ball size are still variable. My head's already burning so I wonder if somebody could help me out. I had a look at some open source breakout games but I had to realize that they also had the same problem!

Here's an image illustrating my problem: