#I have an Vec<Entity>, how canI get the mutable references for all these entities from a Query?

6 messages · Page 1 of 1 (latest)

prime kernel
#

It looks like this is only possible with an array, is there a way to do this with a Vec?

upbeat crag
prime kernel
blazing crypt
#

get_unchecked is possibly unsafe, so maybe it would be a better idea to change how your code works? Plus entities are just pieces of value data (like numbers), so why referencing them is needed?
Maybe you can share a bit of your code?

prime kernel
#

I have chunks, and each chunk when updating needs the mutable reference foe other chunks

#

for*