Collision Detection using bounded boxes
问题 I'm doing a programing project for class. We are programing the game break out, which consist of a ball, a paddle, four edges, and bricks. the ball bounces off the different objects and each object preforms different operations upon itself when a collision is detected. below is my code which currently doesn't work. I'm trying to use the location of the object (its center point) to construct a bounded box and the values of each edge(Top, Bottom, Left, Right) to calculate if the boxes hit. I