Function heron::rapier_plugin::rapier3d::parry::query::details::local_ray_intersection_with_triangle
source · pub fn local_ray_intersection_with_triangle(
a: &OPoint<f32, Const<3>>,
b: &OPoint<f32, Const<3>>,
c: &OPoint<f32, Const<3>>,
ray: &Ray
) -> Option<(RayIntersection, Matrix<f32, Const<3>, Const<1>, ArrayStorage<f32, 3, 1>>)>
Expand description
Computes the intersection between a triangle and a ray.
If an intersection is found, the time of impact, the normal and the barycentric coordinates of the intersection point are returned.