rust/hwphysics/src/lib.rs
changeset 15280 66c987015f2d
parent 15279 42b710b0f883
child 15286 8095853811a6
--- a/rust/hwphysics/src/lib.rs	Thu Jul 25 22:31:24 2019 +0300
+++ b/rust/hwphysics/src/lib.rs	Thu Jul 25 23:02:02 2019 +0300
@@ -10,7 +10,7 @@
 
 use crate::{
     collision::{CollisionData, CollisionProcessor, ContactData},
-    common::{GearAllocator, GearData, GearDataAggregator, GearDataProcessor, GearId},
+    common::{GearAllocator, GearData, GearDataAggregator, GearDataProcessor, GearId, Millis},
     physics::{PhysicsData, PhysicsProcessor},
     time::TimeProcessor,
 };
@@ -65,7 +65,7 @@
         self.allocator.free(gear_id)
     }
 
-    pub fn step(&mut self, time_step: FPNum, land: &Land2D<u32>) {
+    pub fn step(&mut self, time_step: Millis, land: &Land2D<u32>) {
         let updates = self.physics.process(time_step);
         let collision = self.collision.process(land, &updates);
         let events = self.time.process(time_step);