How to Use colliders for triggers Unity 4.3


show more Using colliders for triggers provides you with in-depth training on 3D + Animation. Taught by Adam Crespi as part of the Unity 4.3 Essential Training show less
please wait ...

Using colliders for triggers

We can use colliders to activate animations, and trigger things. Beyond simply fencing the player in, colliders can provide a way for the player to interact with the game in their environment. What I've done so far is to add on the master building, all kinds of different box colliders. They're on all the different objects, such as the columns, the railings, and spanning the windows. The only place for this is a mesh collider is on some of the white walls inside. As being just a couple of polygons, those were cheaper as a mesh than as a box.

Everything also though is done with the box colliders, so that the player can no longer walk through the walls. What we'll do now is add a box collider in as a trigger, to open French door 11, the left most door of the fore scene here. This way, the player can finally get out onto this balcony, as one door is unlocked. We could have multiple doors swing open, and do it with either multiple colliders, or a script that triggers all kinds of animations. But...

Using colliders for triggers
Video duration: 8m 1s 6h 49m Beginner

Viewers:

Using colliders for triggers provides you with in-depth training on 3D + Animation. Taught by Adam Crespi as part of the Unity 4.3 Essential Training

Subjects:
3D + Animation Developer
Software:
Unity
Author:
please wait ...