Add fall through floor checks
This commit is contained in:
parent
82c5836cfc
commit
cdb8b8dd83
@ -94,7 +94,7 @@ pub fn modify_player_based_on_forces(
|
|||||||
player.size.y,
|
player.size.y,
|
||||||
);
|
);
|
||||||
|
|
||||||
if colliders.iter().any(|rect| {
|
if player.position.y > 50.0 || colliders.iter().any(|rect| {
|
||||||
let mut translated_rect = rect.clone();
|
let mut translated_rect = rect.clone();
|
||||||
translated_rect.y += level_height_offset;
|
translated_rect.y += level_height_offset;
|
||||||
translated_rect.x += WORLD_LEVEL_X_OFFSET;
|
translated_rect.x += WORLD_LEVEL_X_OFFSET;
|
||||||
|
Reference in New Issue
Block a user