Skip to content

Commit

Permalink
Add ray::RayMap::map_mut
Browse files Browse the repository at this point in the history
  • Loading branch information
chompaa committed Dec 14, 2024
1 parent c4a24d5 commit 59d7220
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/bevy_picking/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ pub mod ray {
&self.map
}

/// The mutable hash map of all rays cast in the current frame.
pub fn map_mut(&mut self) -> &mut HashMap<RayId, Ray3d> {
&mut self.map
}

/// Clears the [`RayMap`] and re-populates it with one ray for each
/// combination of pointer entity and camera entity where the pointer
/// intersects the camera's viewport.
Expand Down

0 comments on commit 59d7220

Please sign in to comment.