pub fn calculate_bounds(
commands: Commands<'_, '_>,
meshes: Res<'_, Assets<Mesh>>,
new_aabb: Query<'_, '_, (Entity, &Mesh3d), (Without<Aabb>, Without<NoFrustumCulling>, Without<NoAutoAabb>)>,
update_aabb: Query<'_, '_, (&Mesh3d, &mut Aabb), (Or<(AssetChanged<Mesh3d>, Changed<Mesh3d>)>, Without<NoFrustumCulling>, Without<NoAutoAabb>)>,
)Expand description
Computes and adds an Aabb component to entities with a
Mesh3d component and without a NoFrustumCulling component.
This system is used in system set VisibilitySystems::CalculateBounds.