rust/hwphysics/src/lib.rs
changeset 15802 f4b563a9ac5e
parent 15797 95402fa4e191
child 15850 44b49f255e31
--- a/rust/hwphysics/src/lib.rs	Mon Mar 15 15:57:19 2021 -0400
+++ b/rust/hwphysics/src/lib.rs	Wed Mar 24 00:11:49 2021 +0300
@@ -48,12 +48,7 @@
     }
 
     pub fn step(&mut self, time_step: Millis, land: &Land2D<u32>) {
-        let updates = if time_step == Millis::new(1) {
-            self.physics.process_single_tick(&mut self.data)
-        } else {
-            self.physics
-                .process_multiple_ticks(&mut self.data, time_step)
-        };
+        let updates = self.physics.process(&mut self.data, time_step);
         let collisions = self.collision.process(land, &updates);
     }