Function bevy_picking_rapier::update_hits

source ยท
pub fn update_hits(
    backend_settings: Res<'_, RapierBackendSettings>,
    ray_map: Res<'_, RayMap>,
    picking_cameras: Query<'_, '_, (&Camera, Option<&RapierPickable>, Option<&RenderLayers>)>,
    pickables: Query<'_, '_, &Pickable>,
    marked_targets: Query<'_, '_, &RapierPickable>,
    layers: Query<'_, '_, &RenderLayers>,
    rapier_context: Option<Res<'_, RapierContext>>,
    output_events: EventWriter<'_, PointerHits>,
)
Expand description

Raycasts into the scene using RapierBackendSettings and PointerLocations, then outputs PointerHits.