I've gotten many simple games up and running, and now I'm in the process of making a bigger one. In my smaller games, I would simply check if 2 objects were colliding in the game loop, for example, in Pong:
if(paddle.collides(ball)) {
ball.bounce();
}
But now that I'm starting to upscale, it seems that I need a better, more flexible solution. I assumed this would be a common problem, but when I looked up “Collision engine”, I mostly got results on how to implement real life physics. The problem with this is that some objects …