diff options
Diffstat (limited to 'src/force/drag.rs')
-rw-r--r-- | src/force/drag.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/force/drag.rs b/src/force/drag.rs deleted file mode 100644 index ef859a0..0000000 --- a/src/force/drag.rs +++ /dev/null @@ -1,15 +0,0 @@ -use crate::particle_system::Scalar; - -use super::Force; - -pub struct Drag { - pub coefficient: Scalar, -} - -impl Force for Drag { - fn apply(&self, particles: &mut Vec<crate::particle_system::Particle>) { - for particle in particles { - particle.apply_force(-self.coefficient * particle.velocity); - } - } -} |