From 8cd970a930140b511c1424762890d89248ad04ea Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 18 Apr 2024 23:05:29 +0200 Subject: [PATCH] fix selectagon orientation in map mode --- src/hud.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hud.rs b/src/hud.rs index 6c81ce0..a80c169 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -709,7 +709,7 @@ fn update_target_selectagon( } selectagon_trans.translation = target_trans.translation; selectagon_trans.scale = target_trans.scale; - selectagon_trans.rotation = Quat::from_rotation_arc(Vec3::Z, (-selectagon_trans.translation).normalize()); + selectagon_trans.look_at(camera_trans.translation, Vec3::X); // Enlarge Selectagon to a minimum angular diameter let (angular_diameter, _, _) = camera::calc_angular_diameter(