Game Development Reference
In-Depth Information
F
Box Collider
Material
:
Rock
(Drag
Rock
physics material in the
Chapter7
folder
to
Project
view here)
F
Mesh Renderer
Materials
:
Size
:
1
Element 0
:
Rock
(Drag
Rock
material in the
Chapter7
folder in
Project
view here)
F
Rigidbody
Mass
:
6000
Is Kinematic
:
Check
4. Now, we have inished seing up the irst cube. Let's duplicate seven more cubes by
pressing
Command + D
(for Mac) or
Control + D
(for Windows) keys, and naming all
seven cubes
Cube2
,
Cube3
,
Cube4
,
Cube5
,
Cube6
,
Cube7
, and
Cube8
similar to
what we did for the
Wall
game object in the third step. Then, we go to each new
cube's
Inspector
view and set up its posiion as follows:
F
Transform (Cube2)
Position
:
X: 1.5
Y: 0
Z: 0
F
Transform (Cube3)
Position
:
X: -1.5
Y: 0
Z: 5
F
Transform (Cube4)
Position
:
X: 1.5
Y: 0
Z: 5
F
Transform (Cube5)
Position
:
X: -1.5
Y: 0
Z: 10
F
Transform (Cube6)
Position
:
X: 1.5
Y: 0
Z: 10
F
Transform (Cube7)
Position
:
X: -1.5
Y: 0
Z: 15
F
Transform (Cube8)
Position
:
X: 1.5
Y: 0
Z: 15