Fix flight turning

This commit is contained in:
Imbris 2019-12-19 23:28:37 -05:00
parent 934c5d6846
commit 6524ea31d1

View File

@ -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)
};