Recommended Posts

How might one go about making a Bezier curve oscillate? I've been trying to do this all day today by changing the control points back and forth on each pass through the drawScene function but to no avail. Here is the relevant code I've written:

Share this post

Link to post

Share on other sites

How does you curve change? Bezier curve is sensitive to the change of each control point. In another word, if you change one of control points, your whole Bezier curve would change. Try use B-spline curve. The control point of b-spline curve can affect the curve more precisely, the change of one of control points will only cause the change of part of the curve around that control point.