From 5163f45e8ac01e42818b652eaa8a5815c05244e8 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Tue, 9 Jul 2019 14:04:30 +0100 Subject: [PATCH] Fixed block snapping at lower framerates --- common/src/sys/phys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/sys/phys.rs b/common/src/sys/phys.rs index ad40e3a84a..b3cd728894 100644 --- a/common/src/sys/phys.rs +++ b/common/src/sys/phys.rs @@ -319,7 +319,7 @@ impl<'a> System<'a> for Sys { // If the space below us is free, then "snap" to the ground if collision_with(pos.0 - Vec3::unit_z() * 1.05, near_iter.clone()) && vel.0.z < 0.0 - && vel.0.z > -1.0 + && vel.0.z > -3.0 && was_on_ground { pos.0.z = (pos.0.z - 0.05).floor();