It is very important in a game that you detect collisions properly. Nobody is going to play a game where things start exploding even when they are many pixels apart. Besides the graphics and sounds, this is one more thing that you should try to keep as accurate as possible.
In this tutorial, you will learn about detecting and debugging collisions in detail.
Detecting and Ignoring Hits
Before you can detect any collisions, you need to add the
Collision component to an entity. This component will…