From 8afd150223f6d02faf7d7e23a26e5132df766f8c Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 16 Apr 2024 17:12:39 +0200 Subject: [PATCH] fix collider hiding --- src/commands.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands.rs b/src/commands.rs index f00034d..94cab3f 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -618,11 +618,17 @@ fn spawn_entities( pub fn hide_colliders( - mut q_mesh: Query<(&mut Visibility, &Name), (With, With>)>, + //mut commands: Commands, + mut q_mesh: Query<(&mut Visibility, &Name), With>>, + //q_flag: Query>, ) { for (mut visibility, name) in &mut q_mesh { if name.as_str() == "Collider" { *visibility = Visibility::Hidden; } } + // TODO: not quite done here yet... +// for entity in &q_flag { +// commands.entity(entity).remove::(); +// } }