Advertisement

Quadratic Bezier Curve Woe's

Started by May 15, 2003 11:43 AM
0 comments, last by Michael900p 21 years, 9 months ago
Hopefully this will be a simple question to answer, however I am having great difficulty solving it. So all help will be most greatly appreciated. My problem is, I am maping a Quadratic Bezier Curve using the x0,y0,x1,y1,x2,y2 points. This part I have handled using the below formula, however I need to be able to animate an object to follow the illustrated Curve path from start to finish. (ax*t*t+bx*(1-t)*(1-t)-cx)/(-2*t*(1-t)) (ay*t*t+by*(1-t)*(1-t)-cy)/(-2*t*(1-t)) These formulas allow me to draw a curve that passes through my three points, as aposed to the usual quadratic bezier which I believe has a control point acting as a "magnet", for lack of a better term. How can I determine points on this curve at any given time? Ideally I would like to implement a loop that moves my item along the path from start to finish. Is this possible? Thank-you in advance.
The t parameter [0, 1] ????

This topic is closed to new replies.

Advertisement