Game Development Reference
In-Depth Information
Engage thrusters
Here, we will create six cube objects that will slide down the hill and two cube objects,
which will be static objects, to make it look like part of the rock is still stuck to the terrain.
Then, we will create the trigger area to make the rock fall down when the player hits it.
Let's get started:
1. Let's go to GameObject | Create Other | Cube , name it Cube1 , and drag it to the
Break game object in Rockslide , which we just created, as shown in the following
screenshot:
2. Next, we will go to the Inspector view of Break and set its Transform position to
X : 0 , Y : -1.32 , and Z : 5.97 .
3. Then, we will add the Rigidbody component to the Cube1 object by going to
Component | Physics | Rigidbody .
4. Next, we will go to the cube's Inspector view to set up the parameters as follows:
Transform
Position
X : -1.5 , Y : 0 , and Z : -4.1
Rotation
X : 0 , Y : 0 , and Z : 0
Scale:
X : 3 , Y : 3 , and Z : 5
Box Collider
Rock (drag the Rock physics material from the Resources/
Physics Materials folder to the Project view)
Material
Mesh Renderer
Materials
Search WWH ::




Custom Search