Collision Detection between rectangles and a ball

I’m currently programming my first real game. Unfortunately, I’m having trouble detecting collisions between the ball and several rectangles. If the ball flies directly towards a rectangle, it destroys it just perfectly, But if the ball comes from the side, it just flies through and destroys several rectangles behind it. Furthermore, the rectangles are close together and the ball is quite big. Unfortunately I can’t show any code because it’s a school project for which I get a grade. I’ve been dealing with this problem for quite some time now, so I’d be happy to get help. :slight_smile:

Can anyone help? :slight_smile: DM me and i will send you the source code.

The following information about collision detection might be useful here.

2 Likes

I found this to be valuable. See if it helps you as well.

From a discussion at:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.