Ragdolls on Unity 3D

Teaching materials for the school of programming. Part 15

Previous tutorials can be found here:
  1. Spaceship





  2. Dominoes





  3. Flappy bird





  4. Gravity room





  5. Platformer





  6. Trees (plugin SpeedTree)





  7. Modeling a house in SketchUp





  8. House in the woods





  9. Rain effect. Particles





  10. Billiards





  11. Liquid character





  12. Sticking and working with the Event System





  13. Unity 3D synthesizer





  14. Hovercraft





Ragdolls are “ragdoll physics”, the main task of which is a realistic fall of bodies with a skeleton. Ragdolls are used everywhere - from shooters (falling enemies) to racing. Let's say in “Goat Simulator” ragdolls are an important part of the gameplay.





Goat simulator
Goat simulator

:





  • ;





  • ̆;





  • ̆ Rigidbidy .





̆ ̆ . - ̆, - ( "" , ).





, ̈ ̆ . , - ̆.





: , - ( : ).





- -. 2 ̆ .





:





, Create → Ragdoll :





̈ Create . , ̆.





Let's fix their size manually, except for the collider, which is on the right (from us) hand. We will act differently with him. This is a capsule on the hand, and it cannot be directly tilted, but you can copy this component onto an empty object, place it in the hand pivot and rotate it locally. Remove the capsule on the arm itself.





After all these manipulations, the model should fall correctly, namely, softly and naturally.





Done!








All Articles