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. ...

Get Unity 5.x Animation Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.