From cdb8b8dd83cab9379c9ea873261a4e399a639769 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Sat, 2 Oct 2021 23:11:26 -0400 Subject: [PATCH] Add fall through floor checks --- game/src/character/collisions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/src/character/collisions.rs b/game/src/character/collisions.rs index f2c632c..5775489 100644 --- a/game/src/character/collisions.rs +++ b/game/src/character/collisions.rs @@ -94,7 +94,7 @@ pub fn modify_player_based_on_forces( player.size.y, ); - if colliders.iter().any(|rect| { + if player.position.y > 50.0 || colliders.iter().any(|rect| { let mut translated_rect = rect.clone(); translated_rect.y += level_height_offset; translated_rect.x += WORLD_LEVEL_X_OFFSET;