laundmo / bevy-spatial

Spatial datastructures for Bevy
Other
150 stars 17 forks source link

Despawned entities returned from within_distance #32

Closed RyanChomistek closed 5 months ago

RyanChomistek commented 5 months ago

I have a KDTree2 setup, but if I despawn an entity that happens to be in the tree, later if I call within_distance, it can still return that entity and cause a panic because of hitting an update cycle before the tree rebuilds