# HG changeset patch # User alfadur # Date 1567026483 -10800 # Node ID 6ad92b6ac43c01f440e07f8c2691a4b390bddec0 # Parent 52844baced172db4c2e2457d86dc8fcdcf62c6be remove velocity check diff -r 52844baced17 -r 6ad92b6ac43c rust/hwphysics/src/physics.rs --- a/rust/hwphysics/src/physics.rs Thu Aug 29 00:06:31 2019 +0300 +++ b/rust/hwphysics/src/physics.rs Thu Aug 29 00:08:03 2019 +0300 @@ -68,12 +68,10 @@ data.iter_id( |gear_id, (pos, vel): (&mut PositionData, &mut VelocityData)| { - if !vel.0.is_zero() { - let old_pos = pos.0; - vel.0 -= self.gravity * fp_step; - pos.0 += vel.0 * fp_step; - self.position_updates.push(gear_id, &old_pos, &pos.0) - } + let old_pos = pos.0; + vel.0 -= self.gravity * fp_step; + pos.0 += vel.0 * fp_step; + self.position_updates.push(gear_id, &old_pos, &pos.0) }, );