O'Reilly logo

Unity Character Animation with Mecanim by Jamie Dean

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Delete the Sphere and Cube objects.
  2. In the Hierarchy panel, select the groundPlane game object.
  3. In the Inspector panel, set the groundPlane object's Transform Scale field's X and Z values to 0.5.
  4. In the Project panel, click on the FBX_Imports folder to view its contents in the Assets panel.
  5. 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required