pub fn ray_intersect(
context: &Context,
position: Vec3,
direction: Vec3,
max_depth: f32,
geometries: impl IntoIterator<Item = impl Geometry>,
) -> Option<IntersectionResult>
Expand description
Finds the closest intersection between a ray starting at the given position in the given direction and the given geometries.
Returns None
if no geometry was hit before the given maximum depth.