selectagon rotation -> camera's "up" vector. started flickering a bit

This commit is contained in:
yuni 2024-05-08 05:55:40 +02:00
parent d44d171a1c
commit 83966bf452

View file

@ -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(