◆ MollerTrumboreTriangleIntersection()

static bool MollerTrumboreTriangleIntersection ( Vector3  V1,
Vector3  V2,
Vector3  V3,
Vector3  O,
Vector3  D,
out float  dist 
)
static
Parameters
V1defines one of the triangle's corners
V2defines one of the triangle's corners
V3defines one of the triangle's corners
Odefines the origin of the 3d line whose intersection we wish to test
Ddefines the length of the 3d line whose intersection we wish to test
distIf an interaction is detected, this OUT parameter will hold the distance from the line origin, where the intersection occurs
Returns
returns true if an intersection was found, false if not