If bullet is iterated multiple times, it might be worth to cull out all of the enemies that will never be in the bullet's path. compute a big rect for the whole path first and if colliderect, add to entities list
What if an entity is spawned/despawned during bullet travel?
We have no way to guarantee world immutability as we pass the enemies as a list argument...
If bullet is iterated multiple times, it might be worth to cull out all of the enemies that will never be in the bullet's path.
compute a big rect for the whole path first and if colliderect, add to entities list