pub fn calculate_bounds(
commands: Commands<'_, '_>,
meshes: Res<'_, Assets<Mesh>>,
without_aabb: Query<'_, '_, (Entity, &Mesh3d), (Without<Aabb>, Without<NoFrustumCulling>)>,
)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.