// apply the updates to this cell (call once per timestep)
apply the updates to this cell (call once per timestep)
apply the updates to this cell ( call once per timestep )
fn apply_flow_update(&mut self) {
        if self.particle_count > 0 {
            self.flow_v.x = lerp (self.flow_v.x, self.flow_updates.x / self.particle_count as f32, 0.1 );
            self.flow_v.y = lerp (self.flow_v.y, self.flow_updates.y / self.particle_count as f32, 0.1);
            self.flow_updates.x = 0.;
            self.flow_updates.y = 0.;
            self.particle_count = 0;
        }
    }
fn apply_flow_update ( & mut self ) { if self . particle_count > 0 { self . flow_v . x = lerp ( self . flow_v . x , self . flow_updates . x / self . particle_count as f32 , 0.1 ) ; self . flow_v . y = lerp ( self . flow_v . y , self . flow_updates . y / self . particle_count as f32 , 0.1 ) ; self . flow_updates . x = 0. ; self . flow_updates . y = 0. ; self . particle_count = 0 ; } }
apply the updates to this cell (call once per timestep)
apply the updates to this cell ( call once per timestep )
&mut self