O'Reilly logo

Unity 3.x Game Development Essentials by Will Goldstone

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

Adding the outpost

Before we begin to use both collision detection and ray casting to open the door of our outpost, we'll need to introduce it to the scene.

To begin, drag the outPost model from the Project panel to the Scene view and drop it onto an empty area of land. You'll notice that when dragging 3D objects to the Scene view, Unity positions them by dropping them onto any collider that it finds beneath your dragged cursor.

In this instance, it's the in-built Terrain Collider, but often you'll need to do your own tweaking of position using the Translate tool (W) once your objects are in the scene.

Once the outpost is in the Scene, you'll notice its name has also appeared in the Hierarchy panel and that it has automatically become selected. To ...

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