Chapter 8. Implementing Ragdoll Physics
In this chapter, we will apply physics to the female zombie character, creating an interesting death effect that can be used in the game.
Ragdoll physics is a method that involves a system of joints connecting weighted body parts used to create a real-time animation sequence.
Unlike, traditional keyframe animation that is created in external 3D software and imported to Unity, the ragdoll object will interact with forces within the game. This means that the enemy will fall to the ground in different ways based on the applied force and the scenery that it collides with.
In this chapter, you will learn to:
- Demonstrate the use of Unity's Rigidbody and Joint components
- Demonstrate the creation of a ragdoll from an existing character with the Ragdoll Wizard
- Show the adjustment of collision objects to fit the character model
- Add custom joints for parts of the rig not covered by the wizard
- Set limits to approximate realistic joint rotation.
When the...