Shoot the guard at the top of the staircase and he doesn't play a canned "death" clip — he crumples. His head snaps back, his knees fold, one arm catches a banister, and he tumbles step over step to the bottom, coming to rest in a heap no animator ever posed. Every fall is different because none of it is animation: for those two seconds the character's skeleton has been handed over to a physics simulation. This is the ragdoll, and it is one of the most-seen pieces of real-time physics in all of games.
Underneath it sits a structure that shows up far beyond death animations — in robotics, in cloth, in rope, in every jointed creature: the articulated body. This page pins down what an articulated body is, how a ragdoll turns a rig into one, the two rival ways to solve its motion, and the modern trick — active ragdolls with powered joints — that stops the poor guard from looking quite so dead.
Two free rigid bodies floating in space have
A character is normally driven by
Below is the same articulated skeleton in its two lives: on the left, standing in a keyframed pose; on the right, the moment the animation is handed to physics and the joints give way. Same bones, same joints, same limits — one is being posed, the other simulated.
There are two established coordinate systems for simulating an articulated body, and the choice shapes the whole solver.
The trade is familiar: maximal coordinates are easy to bolt onto a general rigid-body engine and mix
naturally with collisions, at the cost of possible separation; reduced coordinates guarantee the
skeleton stays assembled and scale linearly with chain length, at the cost of a more involved
The naïve way to find the accelerations of an
A pure ragdoll is completely limp — no muscle, no intent — so it can only ever collapse. Real bodies resist: a shoved person staggers, throws out an arm, and pushes back upright. To get that, we make the ragdoll active by putting a small motor at each joint that pushes it toward a target pose taken from the ordinary animation. The motor is a PD controller — proportional–derivative — the same idea as a spring with damping:
The joint applies a torque
A related trick is the partial ragdoll: physics owns only some bones while the rest keep playing animation. Shoot someone in the arm and just the arm goes ragdoll and flails, recoiling from the impact, while the legs keep running the walk cycle — cheap, controllable, and far less likely to look like a total collapse.
A guard standing upright takes a shove to the chest. Follow what the articulated body does.
1. The switch. On the hit, the character's twelve bones become physics-driven rigid bodies. Their initial velocities are seeded from the current animation plus the impulse of the shove, so momentum carries over — no sudden pop.
2. Limits protect the anatomy. As he topples and an arm slams the ground, the elbow
hinge tries to bend the wrong way. Its angle limit stops it dead at full extension:
the elbow can flex toward roughly
3. Motors add muscle tone. Because this is an active ragdoll, every joint's
PD motor is pulling toward the animator's "stagger" target pose. Take the neck: it has drooped to
a torque that lifts the head back toward the pose instead of letting it hang like a corpse. Every joint doing this at once is what reads as a living body fighting the fall.
4. Blend back. Once he settles and the velocities die down, the game ramps the PD gains up and cross-fades from the physics pose to a matched get-up animation, and the guard clambers to his feet — control handed cleanly from physics back to keyframes.
The classic mistake is to ship a pure passive ragdoll — bones, joints, gravity, and nothing else — and expect it to look alive. It won't: with no muscle tone it goes completely limp, reading as unconscious or dead even when the character is meant to be merely staggering. Worse, a limp ragdoll frequently gets stuck in unnatural poses (an arm bent behind the head, a leg through the torso) because nothing pulls it back toward anything sensible.
And if the joints or their limits are ill-tuned — limits missing, constraints too stiff for the timestep, or gains cranked too high — the solver can inject energy instead of removing it and the ragdoll explodes: bones fling apart, spin wildly, and rocket off-screen (a beloved source of game-physics bloopers, but not what you want in the finished game). The fixes are exactly the ingredients above: give every joint anatomically-correct angle limits, add powered joints (PD motors) so the body has muscle tone and lifelike reactions, keep the gains and constraints stable for your timestep, and blend back to animation for recovery rather than leaving the character limp forever.
The same bones-and-joints machinery drives far more than dying enemies. A robot arm is an articulated body whose joints you command rather than let fall. A swinging rope or chain is a long chain of tiny links. A dinosaur's tail, a tentacle, a hanging sign, a set of nunchucks, even secondary motion on a character's ponytail and coat-tails are all articulated-body simulations. Learn to model one jointed skeleton and you can shake, swing and topple almost anything.