cf_ray3_to_triangle3¶
Category: collision
GitHub: cute_math3d.h
Casts a ray against a (two-sided) triangle.
Remarks¶
The missing half of mouse picking against meshes: unproject a ray with cf_draw3d_unproject, then cast it against your triangles. The reported normal faces back along the ray.
Related Pages¶
CF_Ray3
CF_Triangle3
CF_Raycast3
cf_ray3_to_aabb3
cf_draw3d_unproject