rust/hwphysics/src/physics.rs
changeset 15392 b387a51705ac
parent 15383 701ad89a9f2a
child 15393 0ef770a40e75
--- a/rust/hwphysics/src/physics.rs	Sun Sep 01 21:57:01 2019 +0200
+++ b/rust/hwphysics/src/physics.rs	Tue Sep 03 23:57:06 2019 +0300
@@ -65,7 +65,7 @@
     pub fn process_single_tick(&mut self, data: &mut GearDataManager) -> &PositionUpdates {
         self.position_updates.clear();
 
-        data.iter_id(
+        data.iter().run_id(
             |gear_id, (pos, vel): (&mut PositionData, &mut VelocityData)| {
                 let old_pos = pos.0;
                 vel.0 -= self.gravity;
@@ -85,7 +85,7 @@
         let fp_step = time_step.to_fixed();
         self.position_updates.clear();
 
-        data.iter_id(
+        data.iter().run_id(
             |gear_id, (pos, vel): (&mut PositionData, &mut VelocityData)| {
                 let old_pos = pos.0;
                 vel.0 -= self.gravity * fp_step;