Hi.
I am thinking of a way to sweep polygons and rectangles against another polygon and get the Time of Impact.
If i draw lines between the vertexes startposition and endpositionof the polygon (or rectangle) and test those lines for intersections of the other polygon (or rectangle). If i then take the intersection point and compare it to the length of that line, that will give me time of impact.
It has of course be the earliest time of impact compared with all the intersections.
Can i really do it like this? It would be great, because then i can only do line-line intersection test between the vectexes of the shapes.
i submitted a file to illustrate this better.
I am using a sphere in my game now, and i dont think it works with my character.