From the course: Unity: Interactivity for AEC

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Add colliders

Add colliders - Unity Tutorial

From the course: Unity: Interactivity for AEC

Start my 1-month free trial

Add colliders

- [Instructor] Now if we're going to animate something based on proximity, we need to define the volume in which that animation will happen. And we can do that using a collider. So I'm going to go into my scene here and just select my doors. So I have a game object here called Doors_R, and under that I actually have the actual geometry. Now this main node is actually going to serve the purpose of holding that collider that we need. So I'm going to select this and go into Component, Physics, Box Collider. Now I'm choosing a box collider because I want that volume to be box shaped. Obviously you could do a sphere or cylinder, really any shape that you want. But I'm using a box because I think it will work for this particular scene. This box comes in and aligns with that game object. Now I can change the position of this by going into this box collider node and just hovering over X, Y, or Z, and I could change my size or my center. So if I want I can center this to my doors on either…

Contents