Overview
A Mass-Spring System models elastic structures by applying forces based on how far each spring is stretched or compressed from its rest length.
Simulates connected particles using spring forces between neighboring masses.
Compact metadata for implementation and discovery.
A Mass-Spring System models elastic structures by applying forces based on how far each spring is stretched or compressed from its rest length.
Quick facts
Runtime and memory behavior at a glance.
Best
O(springs)
Average
O(steps * springs)
Worst
O(steps * springs)
Space
O(particles + springs)
force = -stiffness * (current_length - rest_length)Computes the restoring force along a spring.
Show particles connected by springs stretching and pulling back toward rest length.
Stiff springs usually require small timesteps or implicit methods.
What each reference supports for this entry.
SIGGRAPH course notes covering integration, particles, constraints, and rigid-body simulation.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Cloth simulations often model fabric as a mass-spring network.
Mass-spring systems are commonly integrated with simple time steppers.