2d physics engine rotation. This is known as collision detection.