I need to check if the edges of two triangles will collide. I do an edge-edge check for each pair. One segment is stationary, while the other moves with constant velocity. The segments are not deformable( the position of the moving points will only change due to the velocity ).
I've tried doing some vector math myself, but had no luck. I found out how to check if two segments intersect and where, but they have to be coplanar, so I still need to know the exact moment along the velocity when they will get coplanar, and if that moment actually exists. If not, obviously, no collision happened.
You can determining whether a point is inside a triangle by using barycentric coordinates $\lambda_i$: Point $\mathbf{r}$ lies inside the triangle if and only if $0 < \lambda_i < 1 \;\forall\; i \text{ in } 1,2,3$.
Choose the first triangle to be fixed and check whether any vertex of the other lies inside the fixed one.