intersectTriangle
fun intersectTriangle(a: Vector3, b: Vector3, c: Vector3, backfaceCulling: Boolean, target: Vector3): Vector3?
Intersects this ray with the triangle (a, b, c), writing the intersection point into target.
Return
target on a hit, or null if there is no intersection.
Parameters
backfaceCulling
if true, backfacing triangles are not intersected.
a
The first vertex of the triangle.
b
The second vertex of the triangle.
c
The third vertex of the triangle.