Function bevy::render::view::calculate_bounds
source · pub fn calculate_bounds(
commands: Commands<'_, '_>,
meshes: Res<'_, Assets<Mesh>>,
without_aabb: Query<'_, '_, (Entity, &Handle<Mesh>), (Without<Aabb>, Without<NoFrustumCulling>)>
)Expand description
Computes and adds an Aabb component to entities with a
Handle<Mesh> component and without a NoFrustumCulling component.
This system is used in system set VisibilitySystems::CalculateBounds.