O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

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

Creating a destructible wall

In this section, we will start creating the destructible wall with the multiple cube game objects in the Unity engine as well as adding some code to the rocket script to make this wall breakable when the player shoots the rocket to hit it.

Prepare for Lift Off

First, we will create the new Tag by going to (Edit | Project Settings | Tags) to bring out the Tags' Inspector view. In the Inspector view, we click on the triangle in front of the Tags element and at the Element 4 type Destructible, as we can see in the following screenshot:

Prepare for Lift Off

Next, we will go to GameObject | Create Empty to create the empty game object and name ...

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