← THE BLUE STICK

Guides / How games are made

What Is Ragdoll Physics?

PLAY NOWSolo, free, in your browser

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.

PartRole
Rigid bodiesSolid pieces with weight: head, chest, pelvis, upper and lower arms, upper and lower legs. Typically 10 to 20 in all
JointsConnections that keep the pieces attached
Joint limitsHow far each joint may bend, so an elbow does not fold backward
Collision shapesSimple boxes and capsules around each piece, used to detect contact
ForcesGravity, 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.

YearMilestone
Late 1990sEarly experiments with simulated bodies in a few PC games
2000Hitman: Codename 47 uses ragdolls for fallen characters and is widely credited with popularizing them
Early 2000sPhysics software such as Havok makes ragdolls available to many studios
2004Half-Life 2 builds a whole game around physics, including a gun for throwing objects
2008Grand Theft Auto IV uses the Euphoria system, in which characters stumble, brace and grab hold as they fall
2010sPhysics-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.

GameWhat it does with ragdolls
Gang BeastsWobbly fighters grapple and throw each other off platforms
Human: Fall FlatA floppy character solves puzzles by climbing and dragging
Totally Accurate Battle SimulatorArmies of flailing soldiers collide
Fall GuysSixty bean-shaped contestants tumble through obstacle courses
Happy WheelsPhysics-based obstacle courses with drastic consequences
QWOPYou control a sprinter's thighs and calves separately, and mostly fall over
Goat SimulatorA goat causes as much chaos as possible
Stick Fight: The GameStick figures brawl in short physics-driven rounds
The Trials seriesA 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 onlyPlain ragdollActive ragdoll
Who controls the bodyThe animatorPhysics alonePhysics, with the body trying to reach a pose
Reacts to the worldNoYesYes
Looks aliveYesNo. LimpYes
Every fall differentNoYesYes
Typical useNormal movementKnocked-out charactersStumbling, 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.

GlitchWhat happensWhy
JitteringA body vibrates on the groundThe simulation cannot settle on a resting position
StretchingA limb pulls out to an impossible lengthA part is caught in scenery while the rest moves on
ClippingParts pass through walls or floorsThe body moved too far in one frame to detect the collision
LaunchingA body is flung an absurd distanceTwo overlapping objects are pushed apart violently
Spaghetti limbsJoints twist far past their limitsJoint 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.

  1. 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.
  2. Physics quality settings. Lower settings may reduce how many bodies are simulated or how long they remain.
  3. 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.
  4. 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.

PLAY NOWSolo, free, in your browser