From 7cc0fd59c8795a7f8282ca004d97ab31c93bd1a4 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 4 Oct 2024 12:47:52 -0700 Subject: [PATCH] simplify double map into single map --- src/physics.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index eab5889..956136f 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -877,8 +877,7 @@ impl Body{ T1:integer::Fix, { // a*dt + v - self.acceleration.map(|elem|dt*elem) - .map(|elem|elem.divide().fix())+self.velocity + self.acceleration.map(|elem|(dt*elem).divide().fix())+self.velocity } pub fn advance_time_ratio_dt(&mut self,dt:model_physics::GigaTime){ self.position=self.extrapolated_position_ratio_dt(dt);