#loop for every item in a query to all the other items

3 messages · Page 1 of 1 (latest)

buoyant lintel
austere perch
#

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

zinc fable
#

oops, i already solved this