Hair simulation is the physics-based computation of how strands of hair or fur bend, swing, collide and settle over time, so that a groomed character reacts believably to gravity, inertia, wind and contact. Within Simulation & effects in 3D graphics & animation, it sits between cloth and soft body work: each strand is a thin, nearly inextensible rod that resists stretching strongly but bends and twists easily.
The discipline is also called hair dynamics. It takes the static result of hair grooming as its rest state and produces animated curves that are cached, interpolated to the full strand count and rendered. Getting it right is less about raw physics accuracy and more about stability, art direction and predictable cost across hundreds of shots.
How hair simulation models a strand
A simulated strand is a chain of points connected by constraints that approximate the mechanics of a real fiber. The solver advances every point each time step, then enforces stretch, bend and twist constraints so the chain keeps its length and its groomed curl. Most production solvers use position-based dynamics or its extended variant XPBD, because constraint projection stays stable at the large time steps animation schedules demand.
More rigorous approaches model each strand as a discrete elastic rod with a material frame, which captures twisting and the springy behavior of curly hair far better. Mass-spring chains remain common in game engines and quick previews, where speed matters more than fidelity. The table below summarizes the main strand models.
| Model | Core idea | Strengths | Weaknesses |
|---|---|---|---|
| Mass-spring chain | Points linked by stretch and bend springs | Simple, fast, easy to tune | Stretches visibly, stiff springs need small steps |
| Position-based dynamics | Iterative projection of length and bend constraints | Stable, art-directable, GPU friendly | Stiffness depends on iteration count |
| Discrete elastic rods | Centerline plus material frame with twist energy | Accurate curls and torsion | Higher cost, more complex setup |
| Super-helices | Piecewise helical segments with reduced coordinates | Natural curly hair, no stretch | Rare in production tools |
Real hair also interacts with itself. Solvers approximate this hair-to-hair interaction with collision between nearby segments, with friction between strands, or with a volumetric density field that pushes strands apart where they bunch together and preserves overall volume.
Guide hairs, interpolation and collisions
Production pipelines rarely simulate every rendered strand. A human head carries roughly 100,000 to 150,000 hairs, and an animal pelt can carry millions, so artists simulate a smaller set of guide curves and interpolate the rendered strands from them. Interpolation copies the motion of nearby guides onto dense hair, usually weighted by distance on the scalp or by a clump assignment.
Collision handling decides whether the result looks credible. Strands must collide with the head, shoulders and clothing, typically through simplified collider meshes or signed distance fields, and collision thickness must account for the volume between guides. A strand that penetrates the scalp for even a few frames is a highly visible failure.
| Asset | Rendered strands | Simulated guides | Main concern |
|---|---|---|---|
| Short human hair | 80,000 to 120,000 | 500 to 3,000 | Silhouette and scalp collision |
| Long human hair | 100,000 to 150,000 | 2,000 to 10,000 | Clumping, shoulder contact, tangling |
| Animal fur | 500,000 to several million | 1,000 to 20,000 | Skin sliding and secondary jiggle |
| Game character | Hair cards or strands | Tens to a few hundred | Frame budget below 1 ms |
Key parameters that shape motion
Hair behavior is controlled by a small number of physical and numerical parameters. Physical settings describe the material, while numerical settings decide how faithfully the solver follows that description. Changing substeps or iterations alters stiffness in many solvers, so physical and numerical settings must be tuned together.
| Parameter | What it controls | Effect of increasing it |
|---|---|---|
| Bend stiffness | Resistance to curving away from rest shape | Hair holds its style and looks heavier |
| Twist stiffness | Resistance to rotation about the strand | Curls keep their spiral under motion |
| Damping | Loss of energy per step | Motion settles faster, less floaty swing |
| Root stiffness | Attachment strength near the scalp | Hair stands up rather than drooping |
| Friction | Sliding resistance against colliders and strands | Hair catches on clothing, clumps stay together |
| Substeps | Solver subdivisions per frame | More stability and stiffness, higher cost |
A practical rule is to set the rest shape from the groom and let stiffness pull strands back to it, rather than trusting gravity to produce the style. Without this rest-shape preservation, a carefully groomed hairstyle sags into a flat, lifeless curtain within the first frames.
How it compares with neighboring simulations
Hair simulation shares solvers with cloth simulation and soft body simulation but differs in geometry. Cloth is a two-dimensional sheet with in-plane shear, whereas hair is a one-dimensional curve whose interesting behavior lies in bending, twisting and clumping. Tools such as Vellum in Houdini or the hair systems in Maya and Blender often run hair and cloth in a single unified solver so the two can collide accurately.
Hair grooming, by contrast, is a static authoring step: it defines length, parting, clumps and frizz before any physics runs. Grooming tools such as XGen produce the rest state, and the simulation only moves that result. Confusing the two leads teams to fix styling problems with physics settings, which rarely works.
Common problems and how to fix them
Most hair simulation issues trace back to collisions, initial state or time stepping. A disciplined workflow starts every shot from a relaxed preroll in which the character moves from a neutral pose into the first animated frame, so strands settle before the visible range begins.
| Symptom | Likely cause | Fix |
|---|---|---|
| Hair passes through the body | Thin collider or fast motion | Thicken collider, add substeps |
| Jitter at rest | Conflicting constraints or tight collisions | Raise damping, loosen collision margin |
| Hair looks like spaghetti | Too few guides, no clumping | Add guides, apply clump interpolation |
| Pop on the first frame | Groom does not match start pose | Run a preroll from the rest pose |
| Strands stretch | Low iteration count | Increase iterations or use a rod model |
- Cache every approved simulation so lighting and rendering never re-solve it.
- Keep simulation scale in real-world units, because gravity and stiffness assume them.
- Use art-direction tools such as goal forces or pinned guides when the director needs a specific silhouette.
The short version
Hair simulation makes digital hair move like real hair. When a character turns, runs or stands in the wind, the computer works out how every lock should swing, bounce and come to rest.
Instead of calculating every single hair, artists move a few thousand guide hairs and let the rest follow them, much like a few strings guiding a puppet. The result is believable motion without an impossible amount of computing.
Where it makes a difference
An animation studio is finishing a shot in which a character with shoulder-length hair spins around on a windy cliff. The groom contains about 120,000 rendered strands, but the simulation artist drives them with 4,000 guide curves using a position-based solver at four substeps per frame, colliding against a simplified head and a cloth-simulated jacket.
The first pass shows strands slipping through the collar during the spin. The artist thickens the collar collider, adds a 24-frame preroll from the rest pose and raises damping slightly. The final cache plays cleanly, interpolates in seconds at render time, and the shot is approved without manual fixes.