From d890a58b93fd11f598b9a1a13c18e5bc9fcca143 Mon Sep 17 00:00:00 2001 From: Ygor Souza Date: Fri, 14 May 2021 21:44:14 +0200 Subject: [PATCH] Reset on_ceiling state Previously, the on_ceiling state would remain true for the entire lifetime of the entity after it touched the ceiling once. --- common/systems/src/phys.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/common/systems/src/phys.rs b/common/systems/src/phys.rs index 0a022366b7..60d6270fb8 100644 --- a/common/systems/src/phys.rs +++ b/common/systems/src/phys.rs @@ -1317,6 +1317,7 @@ fn box_voxel_collision<'a, T: BaseVol + ReadVol>( } physics_state.on_ground = false; + physics_state.on_ceiling = false; let mut on_ground = false; let mut on_ceiling = false;