Converts a SwiftUI-style response — the spring's natural period, in seconds
— to the smoothTime that update/damp consume. dampingRatio is the
orthogonal second dial and is passed to update unchanged.
Yields the same stiffness/damping as SwiftUI's Spring(response:dampingFraction:):
spring3.update(state, target, spring.fromResponse(0.5), 0.3, delta); // bouncy, ~0.5s period
Converts a SwiftUI-style
response— the spring's natural period, in seconds — to thesmoothTimethatupdate/dampconsume.dampingRatiois the orthogonal second dial and is passed toupdateunchanged.Yields the same stiffness/damping as SwiftUI's
Spring(response:dampingFraction:):