Function bevy_mod_raycast::deferred::update_raycast
source · pub fn update_raycast<T: TypePath + Send + Sync + 'static>(
raycast: Raycast<'_, '_>,
pick_source_query: Query<'_, '_, &mut RaycastSource<T>>,
targets: Query<'_, '_, &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.