Looks like this is what you're looking for https://docs.rs/bevy/latest/bevy/ecs/system/struct.Query.html#method.iter_combinations_mut
System parameter that provides selective access to the [Component] data stored in a [World].
3 messages · Page 1 of 1 (latest)
Looks like this is what you're looking for https://docs.rs/bevy/latest/bevy/ecs/system/struct.Query.html#method.iter_combinations_mut
System parameter that provides selective access to the [Component] data stored in a [World].
this wont work as mutable and immutable access to the same data will cause a conflict. You will need to iterate over a single mutable query instead of two. A common pattern would be to iterate over it immutably first, collecting matching entities into a vec and then using that vec to iter the query again
oops, i already solved this