In unity, I am trying to create several curved platforms that connect using bezier curves, however I am having issues. I understand the basics of genertating a bezier curve and I have something working well
My goal is to generate a series of forward moving Bezier curves, that are all connected to each other, while also having varying lengths and points. I have something working, however I am having issues connecting the curves, while retaining random Y values for different heights in the 4 points.
Below is a Sketch I did in MS Paint to help explain goal:
From the sketch you can see that there is a diffrence in height between gameobject 0 and 1 but they are still connected. How can I generate the next points with random Y values, while still accounting for the previous curve? Any help would be greatly appreciated,
Thank you for your time.
gameobject1.P0 = gameobject0.P4
and alsotangent
atgameobject0.p4
=tangent
atgameobject1.p0
. Tangent of the curve is basically the derivative at that point. I don't have the files with me now but you can give it a shot like this \$\endgroup\$