ncollide3d::query

Function ray_intersection_with_triangle

Source
pub fn ray_intersection_with_triangle<N: RealField + Copy>(
    a: &Point<N>,
    b: &Point<N>,
    c: &Point<N>,
    ray: &Ray<N>,
) -> Option<(RayIntersection<N>, Vector3<N>)>
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.