Collision detection is fundamental to many applications, including computer games, physical simulations, robotics and virtual prototyping. In computer games, collision detection ensures that the illusion of a solid world is maintained. Without collision detection, characters could go through walls and other obstacles. Collision detection involves algorithms checking for intersection of two given objects. Simulating what happens once a collision is detected is sometimes referred to as "collision response".
The aim of the "Caco*Asteroid" project is to design and implement a 2D rigid body collision detection and response algorithm. Collisions are handled sequentially and resolved using physical laws of motion, including gravity and drag force. in this project It is possible to set the properties of simulated objects such as: initial velocity, position, mass, acceleration and geometry. In addition to detecting and resolving collisions between objects in motion the "Caco*Asteroid" project is always checking the bounds of the window in order to make sure that the objects stay within the confined space.