azalea_entity::indexing

Function update_entity_chunk_positions

Source
pub fn update_entity_chunk_positions(
    query: Query<'_, '_, (Entity, &Position, &InstanceName, &mut EntityChunkPos), Changed<Position>>,
    instance_container: Res<'_, InstanceContainer>,
)
Expand description

Update the chunk position indexes in Instance::entities_by_chunk.