From 83966bf4527f87b377ffc14d9820d19efdee79c5 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 8 May 2024 05:55:40 +0200 Subject: [PATCH] selectagon rotation -> camera's "up" vector. started flickering a bit --- src/hud.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hud.rs b/src/hud.rs index 9a028d4..c7481f8 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -1022,7 +1022,7 @@ fn update_target_selectagon( } selectagon_trans.translation = target_trans.translation; selectagon_trans.scale = target_trans.scale; - selectagon_trans.look_at(camera_trans.translation, target_trans.up().into()); + selectagon_trans.look_at(camera_trans.translation, camera_trans.up().into()); // Enlarge Selectagon to a minimum angular diameter let (angular_diameter, _, _) = camera::calc_angular_diameter(