Detecting collision between ball (circle) and brick(rectangle)?
- by James Harrison
Ok so this is for a small uni project. My lecturer provided me with a framework for a simple brickbreaker game. I am currently trying to overcome to problem of detecting a collision between the two game objects. One object is always the ball and the other objects can either be the bricks or the bat.
public Collision hitBy( GameObject obj )
{
…