For a collision check I need to calculate time when two convex polyhedra intersect if one of them is moving along a straight line. Currently, I have:
- Input: Convex polyhedron defined as a set of points of one object
Aand its movement direction. - Input: Convex polyhedron defined as a set of points of second object
B - Calculate Minkowski sum of the two sets of points
C,|C| = |A| * |B| - Calculate triangulated convex hull of
C(using QuickHull) - Line intersection against triangles of the convex hull and store minimum and maximum distance along line.
This all works, but is slow. Especially the step to calculate the triangulated convex hull.
I wonder if there is a faster way to calculate the ray-convex polyhedron intersection from the set of points without calculating the triangulated convex hull. I could get the input as planes (plane equations) if it helps.