diff --git a/src/hud.rs b/src/hud.rs index 5eefec7..6c81ce0 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -25,11 +25,13 @@ impl Plugin for HudPlugin { app.add_systems(Startup, setup); app.add_systems(Update, ( update_hud, - update_ar_overlays, handle_input, handle_target_event, )); app.add_systems(PostUpdate, ( + update_ar_overlays + .after(world::position_to_transform) + .in_set(sync::SyncSet::PositionToTransform), update_target_selectagon .after(PhysicsSet::Sync) .after(camera::apply_input_to_player)