Function bevy_mod_bounding::debug::update_debug_meshes[][src]

pub fn update_debug_meshes<T>(
    commands: Commands<'_>,
    materials: ResMut<'_, Assets<StandardMaterial>>,
    meshes: ResMut<'_, Assets<Mesh>>,
    query: Query<'_, (&'static GlobalTransform, &T, Entity, Option<&Children>), (Changed<T>, With<DebugBounds>)>,
    debug_mesh_query: Query<'_, &mut Handle<Mesh>, With<DebugBoundsMesh>>
) where
    T: 'static + BoundingVolume + Clone + Send + Sync + Debug,
    Mesh: From<&'static T>, 

Updates existing debug meshes, and creates new debug meshes on entities with a bounding volume component marked with [BoundingVolumeDebug] and no existing debug mesh.