diff --git a/common/src/states/glide.rs b/common/src/states/glide.rs index f09c321302..d0750a7ccb 100644 --- a/common/src/states/glide.rs +++ b/common/src/states/glide.rs @@ -64,6 +64,7 @@ impl CharacterBehavior for Data { .and_then(|tgt_dir| { Dir::from_unnormalized(data.vel.0) .and_then(|moving_dir| moving_dir.to_horizontal()) + .or_else(|| self.ori.look_dir().to_horizontal()) .map(|moving_dir| { Ori::from(tgt_dir).rolled_right( (1.0 - moving_dir.dot(*tgt_dir).max(0.0))