Skip to main content

cohesion_pull

Function cohesion_pull 

Source
pub fn cohesion_pull(actual: Vec3, target: Vec3, cohesion: f32, dt: f32) -> Vec3
Expand description

Calculate how far a glyph at actual should move toward target given cohesion strength [0, 1] and elapsed time dt.