diff --git a/src/hud.rs b/src/hud.rs index d4f99fa..f1d0168 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -676,6 +676,14 @@ fn update_target_selectagon( selectagon_trans.translation = target_trans.translation; selectagon_trans.scale = target_trans.scale; selectagon_trans.rotation = camera_trans.rotation; + + // Enlarge Selectagon to a minimum angular diameter + let (angular_diameter, _, _) = camera::calc_angular_diameter( + &selectagon_trans, camera_trans); + let min_angular_diameter = 2.0f32.to_radians(); + if angular_diameter < min_angular_diameter { + selectagon_trans.scale *= min_angular_diameter / angular_diameter; + } } else { match *selectagon_vis {