What Does a Collider Do in Unity?
In a game, players, enemies, and obstacles are bound to hit each other at some point. When that happens, a collider is necessary to handle these events. A collider detects collisions between GameObjects. The Collision class holds specific information about the collision that can be sent to the Collider class and used in specific cases…