/collisionDetection

Detecting the intersection of two or more objects.

Primary LanguageJava

Collision Detection

  • Detecting the intersection of two or more objects.

  • This project have the intend to detection the collision of two boxes, to do this is necessary to use the class Rectangle and include the intersects method to verify the collision.

  • Also the project has KeyEvent to detect the keyboard event.

  • Set up the classes that project requires

    • Create methods to get the key event and draw a rectangle
    • Create method to check the collision

image