parry3d/query/ray/
ray_round_shape.rs1use crate::math::Real;
2use crate::query::gjk::VoronoiSimplex;
3use crate::query::{Ray, RayCast, RayIntersection};
4use crate::shape::{RoundShape, SupportMap};
5
6impl<S: SupportMap> RayCast for RoundShape<S> {
7 fn cast_local_ray_and_get_normal(
8 &self,
9 ray: &Ray,
10 max_time_of_impact: Real,
11 solid: bool,
12 ) -> Option<RayIntersection> {
13 crate::query::details::local_ray_intersection_with_support_map_with_params(
14 self,
15 &mut VoronoiSimplex::new(),
16 ray,
17 max_time_of_impact,
18 solid,
19 )
20 }
21}