This definitely pushes the limits on my knowledge of triggers.
Is there a formula for calculating the intersection point between a quadratic Bezier curve and a line?
Example:
in the image below, I have P1, P2, C (which is the control point) and X1, X2 (which for my specific calculation is a straight line on the X axis.)
What I would like to know is the position of X, YT, as well as the angle of the tangent in T. at the intersection between the red curve and the black line.

After doing a little research and searching for this question, I know that I can use:
t = 0.5; // given example value x = (1 - t) * (1 - t) * p[0].x + 2 * (1 - t) * t * p[1].x + t * t * p[2].x; y = (1 - t) * (1 - t) * p[0].y + 2 * (1 - t) * t * p[1].y + t * t * p[2].y;
to calculate my position X, Y at any given point along the curve. Therefore, using this, I could just skip a bunch of points along the curve, checking to see if there is an X axis on my intersecting axis. And from there try to calculate my tangential angle. But this is really not the best way to do this. Does any mathematician-guru know which is the best way?
I think that maybe this is a little harder than I want.
source share