mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Don't remove all negative lift
This commit is contained in:
parent
63fd08f619
commit
b62177e091
@ -72,7 +72,7 @@ fn integrate_glider_forces(
|
|||||||
// rotates too much)
|
// rotates too much)
|
||||||
let dn = glider_rel_dv.dot(*glider_up);
|
let dn = glider_rel_dv.dot(*glider_up);
|
||||||
if dn.is_sign_negative() {
|
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) =
|
if let Some(rot) =
|
||||||
Dir::from_unnormalized(glider_pos + dr).map(|u| char_up.rotation_between(u))
|
Dir::from_unnormalized(glider_pos + dr).map(|u| char_up.rotation_between(u))
|
||||||
|
Loading…
Reference in New Issue
Block a user