Muwaffaq
← Playground

Spring tuner

What does a spring actually do, and how do you tune one?

MotionLive · try it14 / 16

Drag the ball and let go

Position over timeSettles in 1088ms · 39% overshoot
{ type: "spring", stiffness: 300, damping: 10, mass: 1 }

How it works

  • Drag the ball and throw it. It springs back to the centre using the settings on the right, and keeps the speed you threw it with.
  • Stiffness pulls harder, damping calms it down, mass makes it heavier. The graph redraws the spring as you move a slider, with how long it takes to settle.
  • The settings underneath are the exact values you would paste into code.