Skip to main content

cohesion_to_spring

Function cohesion_to_spring 

Source
pub fn cohesion_to_spring(cohesion: f32) -> (f32, f32)
Expand description

Convert cohesion [0, 1] to spring stiffness and damping.

At cohesion=0: very loose (stiffness=0.5, damping=0.3) At cohesion=1: snappy (stiffness=40, damping=8)