Hair simulation

Also known as: hair dynamics

On this page 7

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.

ModelCore ideaStrengthsWeaknesses
Mass-spring chainPoints linked by stretch and bend springsSimple, fast, easy to tuneStretches visibly, stiff springs need small steps
Position-based dynamicsIterative projection of length and bend constraintsStable, art-directable, GPU friendlyStiffness depends on iteration count
Discrete elastic rodsCenterline plus material frame with twist energyAccurate curls and torsionHigher cost, more complex setup
Super-helicesPiecewise helical segments with reduced coordinatesNatural curly hair, no stretchRare in production tools
Common strand models and where they fit

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.

AssetRendered strandsSimulated guidesMain concern
Short human hair80,000 to 120,000500 to 3,000Silhouette and scalp collision
Long human hair100,000 to 150,0002,000 to 10,000Clumping, shoulder contact, tangling
Animal fur500,000 to several million1,000 to 20,000Skin sliding and secondary jiggle
Game characterHair cards or strandsTens to a few hundredFrame budget below 1 ms
Typical guide counts by asset

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.

ParameterWhat it controlsEffect of increasing it
Bend stiffnessResistance to curving away from rest shapeHair holds its style and looks heavier
Twist stiffnessResistance to rotation about the strandCurls keep their spiral under motion
DampingLoss of energy per stepMotion settles faster, less floaty swing
Root stiffnessAttachment strength near the scalpHair stands up rather than drooping
FrictionSliding resistance against colliders and strandsHair catches on clothing, clumps stay together
SubstepsSolver subdivisions per frameMore stability and stiffness, higher cost
Core hair simulation parameters

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.

SymptomLikely causeFix
Hair passes through the bodyThin collider or fast motionThicken collider, add substeps
Jitter at restConflicting constraints or tight collisionsRaise damping, loosen collision margin
Hair looks like spaghettiToo few guides, no clumpingAdd guides, apply clump interpolation
Pop on the first frameGroom does not match start poseRun a preroll from the rest pose
Strands stretchLow iteration countIncrease iterations or use a rod model
Typical symptoms, causes and fixes
  • 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.