Getting ready

We are going to use the same character as in the Creating a humanoid ragdoll with the ragdoll wizard recipe. We will also use the HandleRagdoll.cs script from the same recipe to turn the ragdoll on. You can also open the example Unity project and go to the Chapter 09 Physics and animationsRecipe 06 Applying force to a ragdoll directory. If you open the Example.unity scene there and play the game, you will be able to click on any body part of the character. That will turn the ragdoll on and apply force to this body part, which will make the character look like it was hit or shot in that particular limb:

Force applied directly to the head of the character
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.198.81