O'Reilly logo

Unity 5.x Animation Cookbook by Maciej Szcześnik

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

How to do it...

To make a character get up from being a ragdoll, follow these steps:

  1. Place your character in the scene.
  2. Make two copies of it and name the characters CharacterAnimatedCharacterSkinned, and CharacterRagdoll. We will use these names for better clarity.
  3. Make all characters stand in the exact same place in the scene.
  4. Select the CharacterRagdoll and follow the Creating a humanoid ragdoll with the ragdoll wizard recipe to make a character a working ragdoll. We are not going to use the HandleRagdoll.cs script this time, so you can stop after using the Ragdoll Wizard.
  5. Select CharacterRagdoll game object's rig and name it Ragdoll.
  6. Select the CharacterAnimated and expand its hierarchy.
  7. Remove all objects but the rig of the character. ...

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