Game Development Reference
In-Depth Information
Size
Rock
(drag the
Rock
material in the
Re-
sources/Materials
folder in the
Project
view)
Element 0
1
Rigidbody
Mass
10
Is
Kinematic
Check
Tags
Terrain
5. Now, we have finished setting up the first cube. Let's duplicate five more cubes
by using the shortcut
Command
+
D
(for Mac) or
Ctrl
+
D
(for Windows), and
naming all five cubes to
Cube2
,
Cube3
,
Cube4
,
Cube5
, and
Cube6
, which is
similar to what we did for the
Wall
game object in the previous section,
Creating
a destructible wall
. Then, we go to each new cube's
Inspector
view and set up its
position as follows:
Transform (Cube2)
Position X
:
1.5
,
Y
:
0
, and
Z
:
-4.1
Transform (Cube3)
Position
X
:
-1.5
,
Y
:
0
, and
Z
:
0.92
Transform
(
Cube4
)
Position X
:
1.5
,
Y
:
0
, and
Z
:
0.92
Transform (Cube5)
Position
X
:
-1.5
,
Y
:
0
, and
Z
:
5.92
Transform (Cube6)