I'm trying to implement some simple collision detection in a 2-D system, but I am having trouble. Right now I'm making pong, just squares and stuff, but I suppose that I may want to make asteroids or something, so I guess I'm looking for something like, how to detect collisions between convex polygons on a 2-D system. I have read things, and I am having trouble applying stuff like sphere-plane collision logic to this sort of thing because
- Square can hit top of paddle
- Ball not really a sphere
Right now, I have the objects on this 2-D system just defined as a set of points (float: -1.0 - 1.0) that get moved around by some distance (object's v * delta t) every time the update procedure for the game is called in the game loop. So, the strategy for just looking whether it occupies some place seems a bit inappropriate.