Creating the ragdoll object
We will create the ragdoll prefab using our female zombie character. We need to make a few changes to the scene before we add the character model:
Delete the
Sphere
andCube
objects.In the Hierarchy panel, select the
groundPlane
game object.In the Inspector panel, set the
groundPlane
object's Transform Scale field's X and Z values to0.5
.In the Project panel, click on the
FBX_Imports
folder to view its contents in the Assets panel.In the Assets panel, locate
zombie_f
and drag it into the Hierarchy panel, instancing it in your scene.Note
In previous chapters, we have already created an enemy character prefab from this model, but for the ragdoll prefab we do not need the character controller, animator controller, or behavior script, so it saves time to just create the ragdoll from the source model.
The female zombie model will load in the scene with the default material. We can add the correct material next.
Assigning the material
Adding the right material will make...