bevy_render::view::visibility

Function 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.