Original Post
Hallo!
Fist here''s the tutorial I''m talking about:
http://www.peroxide.dk/papers/collision/collision.pdf
My question concerns the following part:
"
3.4 The sweep test
...
First we check if there is any time where the swept sphere collides against
the infinite line going through the edge. This happens when the distance
between the swept sphere center and the line is 1. Again this reduces to a
quadratic equation with:
"
edge = p2 - p1
baseToVertex = p1 - basePoint
A = ||edge||² * -||velocity||² + (edge*veolcity)²
B = ||edge||² * 2*(velocity*baseToVertex) - 2*((edge*velocity)*(edge*baseToVertex))
C = ||edge||² * (1-||baseToVertex||²) + (edge*baseToVertex)²
A*t² + B*t + C = 0
I want to know the "mathematical way" to get to this equations but I just can''t figure it out.
Maybe someone here can help me