Game Development Reference
In-Depth Information
However, we are not done yet. From the preceding screenshot, we will see that we
sill need to adjust the colliders associated with the character shape.
8. Click on
head
in the
Hierarchy
view, go to the
Inspector
view, and set the following:
F
Sphere Collider
Radius
:
0.15
Center
:
X: -0.04
Y: -0.06
Z: 0
9. Next, click on
roothandle
in the
Hierarchy
view, go to the
Inspector
view, and set
the following:
F
Box Collider
Size
:
X: 1.3
Y: 0.5
Z: 0.35
Center
:
X: -0.5
Y: -0.1
Z: -0.175
10. Click on
spine1
in the
Hierarchy
, go to the
Inspector
view, and set the following:
F
Box Collider
Size
:
X: 1.3
Y: 0.5
Z: 0.35
Center
:
X: -0.32
Y: 0.1
Z: -0.175
11. We just set up the ragdoll for the AI game object, but we sill need to apply the
collider and
Rigidbody
to the gun. So click on the
gun
game object and apply the
Rigidbody
to it by going to
Component
|
Physics
|
Rigidbody
. Go to the
Inspector
view of this game object and set the following:
F
Rigidbody
Mass: 20
12. Next, click on the triangle in front of the
gun
game object to bring up the
gun_
model
, as shown in the following screenshot:
13. Apply the
Box Collider
to the
gun_model
, (which will make the gun collide with
other objects when it falls down), by going to
Component
|
Physics
|
Box Collider
.
We are now done with the creaion of the
robot_AI_ragdoll
game object.