Module |
|
Header |
/Engine/Source/Runtime/Engine/Public/kDOP.h |
Include |
#include "kDOP.h" |
Line vs triangle intersection test.
true if the line intersected the triangle
Parameter |
Description |
---|---|
Start |
Start of the line segment |
End |
End of the line segment |
Dir |
Direction of the line segment (not normalized, just End-Start) |
V0 |
First vertex of the triangle |
V1 |
Second vertex of the triangle |
V2 |
Third vertex of the triangle |
Normal |
Triangle normal (including +W for the plane equation) |
IntersectionTime |
[in/out] Best intersection time so far (0..1), as in: IntersectionPoint = Start + IntersectionTime * Dir. |