I am drawing and animating some objects using GDI. I need to detect a collision between these objects and to change their direction of motion. My question is : is there any algorithm for the detection of object collision by coordinates in C++?
Share
My suggestion is to use a physics engine. Since you require only 2D, I suggest either Box2D or chipmunk. This is probably more easy than to implement it on your own.