Spring

Follows its input like a weight on a spring, overshooting and bouncing before it settles.

Parameters

NameTypeDescription
ValueoutputFloatThe position of the weight on its way to the input.
InputFloatThe value the spring pulls towards.
SpeedFloatHow stiff the spring is, as the number of times per second it would swing back and forth if nothing slowed it down.
BouncinessFloatHow much the value overshoots and keeps swinging, from 0 for no overshoot at all to 1 for a long wobble.

The Spring operator makes a value follow its input like a weight on a spring. When the input moves, the value picks up speed, shoots past the target, swings back and settles. Use it for things that should react with some life, such as a menu that pops into place.

See also Smooth, Limit Speed.

Keywords: bounce, physics, overshoot, wobble, elastic, damping, oscillate