Environmental Colliders
Objectives: Learn the type of environmental colliders and when to use them.
So we create a space in our level, that now needs collider in order for our player be able to move around it, within the bounds of the objects in that space. How can we approach such a thing ?
We have two type of colliders that are the most used for environment, which are Box Colliders and Mesh Colliders.
Box Colliders
For objects that have simple geometric shapes, such as walls in a game, it’s often practical to use primitive colliders. These colliders match the shape of the object closely, providing accurate collision detection without unnecessary complexity.

Mesh Colliders
Different than our Box Collider, this type of collider offers more intricate collision detection, encompassing the entire shape of an object including its edges. While these colliders provide more accurate collision representation, they are less commonly used due to their higher complexity and increased number of triangles. This additional complexity can impact performance and should be considered carefully when implementing colliders in a scene.
So using each of these colliders is based on the object is going to be attached to, if it doesn’t require any complexity to its form, avoid using Mesh Colliders, and instead use Primitive Colliders, such as Box Collider.