pub fn update_raycast<T: 'static + Send + Sync>(
    meshes: Res<'_, Assets<Mesh>>,
    task_pool: Res<'_, ComputeTaskPool>,
    pick_source_query: Query<'_, '_, &mut RayCastSource<T>>,
    culling_query: Query<'_, '_, (&Visibility, &ComputedVisibility, Option<&Aabb>, &GlobalTransform, Entity), With<RayCastMesh<T>>>,
    mesh_query: Query<'_, '_, (&Handle<Mesh>, Option<&SimplifiedMesh>, &GlobalTransform, Entity), With<RayCastMesh<T>>>
)
Expand description

Iterates through all entities with the RayCastMesh component, checking for intersections. If these entities have bounding volumes, these will be checked first, greatly accelerating the process.