Function bevy_mod_raycast::ray_mesh_intersection
source · [−]pub fn ray_mesh_intersection(
mesh_to_world: &Mat4,
vertex_positions: &[[f32; 3]],
vertex_normals: Option<&[[f32; 3]]>,
pick_ray: &Ray3d,
indices: Option<&Vec<impl IntoUsize>>
) -> Option<Intersection>
Expand description
Checks if a ray intersects a mesh, and returns the nearest intersection if one exists.