Fixed water collision bug

This commit is contained in:
Joshua Barretto 2021-03-12 15:38:48 +00:00
parent 2c1c07c6b8
commit 069f259315

View File

@ -647,6 +647,7 @@ impl<'a> PhysicsSystemData<'a> {
match (physics_state.in_liquid, physics_state_delta.in_liquid) {
// this match computes `x <|> y <|> liftA2 max x y`
(Some(x), Some(y)) => Some(x.max(y)),
(x @ Some(_), _) => x,
(_, y @ Some(_)) => y,
_ => None,
};