From 336527c4c01d7652298721a8ea16a48240d6ce5e Mon Sep 17 00:00:00 2001 From: hut Date: Thu, 18 Apr 2024 22:48:26 +0200 Subject: [PATCH] fix AR flicker when moving --- src/hud.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)