When a character in a game is knocked down and crumples in a slightly different heap every time, you are watching ragdoll physics. Instead of playing a recorded animation, the game lets the body fall according to simulated physical rules.
How it works
A ragdoll is a simplified skeleton: a set of rigid parts connected by joints.
| Part | Role |
|---|---|
| Rigid bodies | Solid pieces with weight: head, chest, pelvis, upper and lower arms, upper and lower legs. Typically 10 to 20 in all |
| Joints | Connections that keep the pieces attached |
| Joint limits | How far each joint may bend, so an elbow does not fold backward |
| Collision shapes | Simple boxes and capsules around each piece, used to detect contact |
| Forces | Gravity, impacts and friction, applied every frame |
While the character is moving normally, animation controls it. At the moment it is knocked out, the game hands control to the physics simulation. From then on each piece has weight, gravity pulls it, and it collides with the ground and with objects.
The result is calculated fresh each time. Nobody drew that fall. It happened.
Where it came from
Before ragdolls, a defeated character played one of a few fixed animations. That led to familiar oddities: a body lying stiffly across a staircase as if on flat ground, or hanging in the air over a ledge.
| Year | Milestone |
|---|---|
| Late 1990s | Early experiments with simulated bodies in a few PC games |
| 2000 | Hitman: Codename 47 uses ragdolls for fallen characters and is widely credited with popularizing them |
| Early 2000s | Physics software such as Havok makes ragdolls available to many studios |
| 2004 | Half-Life 2 builds a whole game around physics, including a gun for throwing objects |
| 2008 | Grand Theft Auto IV uses the Euphoria system, in which characters stumble, brace and grab hold as they fall |
| 2010s | Physics-driven comedy games become a genre of their own |
Ragdolls solved several problems at once. Bodies fit the world, slumping down stairs and draping over railings. Every fall is different. Impacts have direction, so a character struck from the left is thrown to the right. And developers no longer need a separate animation for every possible situation.
Why it is funny
Ragdolls became a source of comedy almost immediately. A simulated body has no dignity. It flops, cartwheels and folds in ways no animator would choose.
| Game | What it does with ragdolls |
|---|---|
| Gang Beasts | Wobbly fighters grapple and throw each other off platforms |
| Human: Fall Flat | A floppy character solves puzzles by climbing and dragging |
| Totally Accurate Battle Simulator | Armies of flailing soldiers collide |
| Fall Guys | Sixty bean-shaped contestants tumble through obstacle courses |
| Happy Wheels | Physics-based obstacle courses with drastic consequences |
| QWOP | You control a sprinter's thighs and calves separately, and mostly fall over |
| Goat Simulator | A goat causes as much chaos as possible |
| Stick Fight: The Game | Stick figures brawl in short physics-driven rounds |
| The Trials series | A motorbike rider is flung about by crashes |
Stick figure games took to ragdolls especially well. A figure made of a few lines is simple to simulate and very clear to read as it tumbles.
The humor works without language, which is part of why these games spread so widely through videos and streams.
Active ragdolls
A plain ragdoll is completely limp. A newer approach, the active ragdoll, gives the simulated body something like muscles. The character still obeys physics and also tries to hold a pose or follow an animation.
| Animation only | Plain ragdoll | Active ragdoll | |
|---|---|---|---|
| Who controls the body | The animator | Physics alone | Physics, with the body trying to reach a pose |
| Reacts to the world | No | Yes | Yes |
| Looks alive | Yes | No. Limp | Yes |
| Every fall different | No | Yes | Yes |
| Typical use | Normal movement | Knocked-out characters | Stumbling, bracing, wobbling characters |
Grand Theft Auto IV and Red Dead Redemption 2 use this so that characters who are hit stagger, clutch at an injury or try to catch themselves. Gang Beasts and Human: Fall Flat use it to make the player character itself wobbly, which turns walking into the challenge.
It blends the control of animation with the unpredictability of simulation, and it can make movement look strikingly natural.
Limits and glitches
Physics simulation is approximate, and it sometimes goes wrong in memorable ways.
| Glitch | What happens | Why |
|---|---|---|
| Jittering | A body vibrates on the ground | The simulation cannot settle on a resting position |
| Stretching | A limb pulls out to an impossible length | A part is caught in scenery while the rest moves on |
| Clipping | Parts pass through walls or floors | The body moved too far in one frame to detect the collision |
| Launching | A body is flung an absurd distance | Two overlapping objects are pushed apart violently |
| Spaghetti limbs | Joints twist far past their limits | Joint limits were set too loosely, or overwhelmed |
Skyrim's giants became famous for launching the player high into the sky with one blow, a physics quirk players loved so much that it was left in.
Simulation also costs processing power. Games limit how many ragdolls are active at once and remove or freeze bodies after a while.
A few things affect how ragdolls behave for you.
- Frame rate. Physics tied to frame rate can act differently at very high or very low rates. Some older games are known to misbehave above 60 frames per second.
- Physics quality settings. Lower settings may reduce how many bodies are simulated or how long they remain.
- Online play. Each player's device may simulate a fall separately, so a body can land in a different place on your screen than on a friend's.
- Corpse or debris limits. A setting in some games for how many bodies stay in the world.
Developers spend a lot of effort taming these problems. Players, on the whole, rather enjoy the ones that slip through.