Environmental Colliders

Renato Figueiredo
2 min readFeb 8, 2024

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.

A Box Collider example for a wall.

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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response