O'Reilly logo

Unity 3 Game Development HOTSHOT by Jate Wittayabundit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a ragdoll

In this section, we will apply the ragdoll to the AI ragdoll game object and replace it with the current AI game object when it dies.

Prepare for Lift Off

Go to the Project view and open the Prefabs folder inside the Chapter7 folder. Drag the robot_AI_ragdoll prefab to the Hierarchy view. Then, go to the Scene view and press the F key to zoom into the robot_AI_ragdoll game object in the scene.

Prepare for Lift Off

Engage Thrusters

Now, we can start applying ragdoll physics to the robot_AI_ragdoll:

  1. Go to GameObject | Create Other | Ragdoll... and you will see the Create Ragdoll window pop up, as shown in the following screenshot:
  2. Go back to the Hierarchy ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required