Reader small image

You're reading from  Unity 5.x Animation Cookbook

Product typeBook
Published inMay 2016
Reading LevelExpert
PublisherPackt
ISBN-139781785883910
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maciej Szczesnik
Maciej Szczesnik
author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik

Right arrow

Creating a generic ragdoll with character joints


This time we will create a ragdoll for a non-humanoid character. We cannot use the Ragdoll Wizard in this case, but instead we will make the ragdoll manually.

A generic character ragdoll in action

Getting ready

For this recipe, we need a nonhumanoid character. We use our old fellow Spider as an example. The character needs to be rigged. You can also open the example Unity project and go to the Chapter 09 Physics and animations\Recipe 05 Creating a generic ragdoll with character joints directory. If you open the Example.unity scene there and play the game, you will see a falling spider with the ragdoll already turned on. You can find the Spider in the Rigs directory.

How to do it...

To create a generic ragdoll, follow these steps:

  1. Import the character to Unity and place it in the scene.
  2. Select all the bones of the character's rig that will be used in the ragdoll simulation. In our example, we skipped the fangs.
  3. Add Capsule ColliderRigidbody, and...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Animation Cookbook
Published in: May 2016Publisher: PacktISBN-13: 9781785883910

Author (1)

author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik