fix AR flicker when moving

This commit is contained in:
yuni 2024-04-18 22:48:26 +02:00
parent a14e295007
commit 336527c4c0

View file

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