From b0d1db9c040200ec7372842a907e77032fb2552e Mon Sep 17 00:00:00 2001 From: Imbris Date: Thu, 19 Dec 2019 23:28:37 -0500 Subject: [PATCH] Fix flight turning --- common/src/sys/movement.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/src/sys/movement.rs b/common/src/sys/movement.rs index f0f157b9ce..4c85dfc8cc 100644 --- a/common/src/sys/movement.rs +++ b/common/src/sys/movement.rs @@ -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) };