O'Reilly logo

Building Levels in Unity by Volodymyr Gerasimov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Collider

Collider is a shell that is used to register physical interactions between objects; however, this will not prevent objects from moving into each other. Colliders are there to register collision, not to prevent it. To add a collider to an object, we need to add yet another component called Box Collider under Physics | Box Collider. The purpose of the collider is to register the collision between itself and objects controlled by physics and essentially to prevent your character from walking through walls and falling through the floor. Collider can be transformed manually by clicking Edit Collider button and dragging its boundaries

Collider

You might ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required