SpringConfig

class SpringConfig(var stiffness: Float = SpringForce.STIFFNESS_LOW, var dampingRatio: Float = SpringForce.DAMPING_RATIO_MEDIUM_BOUNCY)

The stiffer the spring is, the harder it is to stretch it and the faster it undergoes dampening. Spring damping ratio describes behavior after the disturbance, over-damp values (more than 1) make the spring quickly return to the rest position. Under-damp values (less than 1) cause overshooting. Damping equal to 0 will cause the spring to oscillate forever. (The lower the damping ratio, the higher the bounciness)

Constructors

Link copied to clipboard
constructor(stiffness: Float = SpringForce.STIFFNESS_LOW, dampingRatio: Float = SpringForce.DAMPING_RATIO_MEDIUM_BOUNCY)

Properties

Link copied to clipboard
Link copied to clipboard