Action games often make use of ragdoll physics to simulate the character's body reaction to being unconsciously under the effect of a hit or explosion. In this recipe, we will learn how to set up and activate ragdoll physics for our character whenever he steps on a landmine object. We will also use this opportunity to reset the character's position and animations a number of seconds after that event.
For this recipe, we have prepared a project named
MixamoProject containing several assets such as levels, animated characters, and props. You can find it inside the
To apply ragdoll physics to your character, follow these steps: