mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Maybe fix glider flip
This commit is contained in:
parent
c2b4f926c1
commit
29b0aafdad
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -4758,7 +4758,7 @@ version = "0.5.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b2acd6defeddb41eb60bb468f8825d0cfd0c2a76bc03bfd235b6a1dc4f6a1ad5"
|
||||
dependencies = [
|
||||
"proc-macro2 1.0.27",
|
||||
"proc-macro2 1.0.26",
|
||||
"quote 1.0.9",
|
||||
"syn 1.0.72",
|
||||
]
|
||||
|
@ -138,7 +138,7 @@ impl CharacterBehavior for Data {
|
||||
let tgt_up = self.tgt_up(max_roll, &tgt_dir, &flow_dir, data);
|
||||
glider.slerp_roll_towards(
|
||||
tgt_up,
|
||||
autoroll_rate * (1.0 - tgt_up.dot(*glider_up).powi(2)) * data.dt.0,
|
||||
autoroll_rate * (1.0 - tgt_up.dot(*glider_up).max(0.0).powi(2)) * data.dt.0,
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user