mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix flight turning
This commit is contained in:
parent
934c5d6846
commit
6524ea31d1
@ -175,6 +175,10 @@ impl<'a> System<'a> for Sys {
|
||||
} else {
|
||||
Vec2::from(inputs.move_dir)
|
||||
}
|
||||
} else if let Glide = character.movement {
|
||||
// Note: non-gliding forces will also affect velocity and thus orientation
|
||||
// producing potentially unexpected changes in direction
|
||||
Vec2::from(vel.0)
|
||||
} else {
|
||||
Vec2::from(inputs.move_dir)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user