How to do it...

To apply Ragdoll physics to your character, follow these steps:

  1. Create a new 3D project and import the Ragdoll Unity Package.
  2. Open the mecanimPlayground level.
  3. You will see the animated MsLaser character and a disc, Spawnpoint.
  4. First, let's create and set up our Ragdoll. Create a new 3D Ragdoll by choosing Create | 3D Object | Ragdoll.... The Ragdoll wizard should pop up.
  5. Assign the transforms as follows:
    • Pelvis: mixamorig:Hips
    • Left Hips: mixamorig:LeftUpLeg
    • Left Knee: mixamorig:LeftLeg
    • Left Foot: mixamorig:LeftFoot
    • Right Hips: mixamorig:RightUpLeg
    • Right Knee: mixamorig:RightLeg
    • Right Foot: mixamorig:RightFoot
    • Left Arm: mixamorig:LeftArm
    • Left Elbow: mixamorig:LeftForeArm
    • Right Arm: mixamorig:RightArm
    • Right Elbow: mixamorig:RightForeArm ...

Get Unity 2018 Cookbook - Third Edition 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.