问题
How do you detect a collision between ball & bricks in a brick breaker game?
回答1:
Bounding Box Collision
That should get you started, and give you some terms to search for. Essentially you treat each brick as a bounding box. Based on the ball position you should be able to determine if the ball collides, this is based on the fact you treat the ball as a simple bounding box, with a set height and width.
来源:https://stackoverflow.com/questions/2678211/collision-detection-between-ball-bricks-in-brick-breaker-game