   collision detection
  Hi everyone,I'm trying to write a game but I can't figure out collision detection. I've looked online for tutorials and articles and I haven't found a single thing that is helpful. Could someone please give me some help?Thanks   
  Collision detection is a HUGE topic. I've been researching this stuff myself for a while now, and have inplemented a few different things.Often, when people say "Collsion Detection" they actually mean INTERSECTION detection. i.e., is object A going to intersect object B if they make certain movements.What kind of data are you using? 2d or 3d? Describe what you currently have working and I'll do my best to point you in the right direction. Once you know enough to ask specific questions, you should be able to learn what you need yourself.;  Moving to For Beginners.   ;  I'm using sdl and c++ and I'm doing 2d graphics. I would like to create a basic tetris like game or something simple like that, but this is the only thing that I have left. I've got all the graphics setup, images drawn to the screen and they can move and they stay on the screen. The logic that I'm trying to implement is say you have 2 rectangles and you don't want them to overlap. So, I've tried to say,take the x from rectangle a and compare it to the x from bif a.x > b.x, then stop.but the problem is that the x value is looked at across the entire screen, which is bad. So I tried to check for the y value also, but when i put that in, things start to mess up.So I'm stuck. I hope that information helps.   ;  Maybe this will help:LazyFooChad