From b62177e091ed8ce27cc9c8a14af180f0d8c86a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludvig=20B=C3=B6klin?= Date: Sun, 6 Jun 2021 19:28:02 +0200 Subject: [PATCH] Don't remove all negative lift --- common/systems/src/phys.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/systems/src/phys.rs b/common/systems/src/phys.rs index ef43d9de20..0501130522 100644 --- a/common/systems/src/phys.rs +++ b/common/systems/src/phys.rs @@ -72,7 +72,7 @@ fn integrate_glider_forces( // rotates too much) let dn = glider_rel_dv.dot(*glider_up); if dn.is_sign_negative() { - dr -= dn * *glider_up / glider_up.magnitude_squared() + dr -= tweak!(0.7) * dn * *glider_up / glider_up.magnitude_squared() } if let Some(rot) = Dir::from_unnormalized(glider_pos + dr).map(|u| char_up.rotation_between(u))