VectorizedSpringSpec

constructor(dampingRatio: Float = Spring.DampingRatioNoBouncy, stiffness: Float = Spring.StiffnessMedium, visibilityThreshold: V? = null)

Creates a VectorizedSpringSpec that uses the same spring constants (i.e. dampingRatio and stiffness on all dimensions. The optional visibilityThreshold defines when the animation should be considered to be visually close enough to target to stop. By default, Spring.DefaultDisplacementThreshold is used on all dimensions of the AnimationVector.

Parameters

dampingRatio

damping ratio of the spring. Spring.DampingRatioNoBouncy by default.

stiffness

stiffness of the spring. Spring.StiffnessMedium by default.

visibilityThreshold

specifies the visibility threshold for each dimension.