From 928c966372b2d4594c61ab47fab8edf4946a3971 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 587d57a78f..254b69cb04 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))