Skip to main content

spring

Function spring 

Source
pub const fn spring(stiffness: f32, damping: f32, mass: f32) -> SpringConfig
Expand description

Creates a SpringConfig from stiffness, damping and mass.

This is the same as SpringConfig::new. Use the short name where the spring reads well next to its animation.