bevy14: upgrade Translation::look_at with directional arguments

This commit is contained in:
yuni 2024-07-09 02:45:44 +02:00
parent 82ff5491a6
commit a14dbcb5c7

View file

@ -1134,7 +1134,7 @@ fn update_target_selectagon(
}
selectagon_trans.translation = target_trans.translation;
selectagon_trans.scale = target_trans.scale;
selectagon_trans.look_at(camera_trans.translation, camera_trans.up().into());
selectagon_trans.look_at(camera_trans.translation, camera_trans.up());
// Enlarge Selectagon to a minimum angular diameter
let (angular_diameter, _, _) =
@ -1221,7 +1221,7 @@ fn update_poi_overlays(
if angular_diameter < min_angular_diameter {
trans.scale *= min_angular_diameter / angular_diameter;
}
trans.look_at(camera_trans.translation, camera_trans.up().into());
trans.look_at(camera_trans.translation, camera_trans.up());
}
}
}