Okay, I know that this has been asked here a lot, but I've read through ~10 other questions exactly like this one, and none of them have provided me with any useful information. In fact, 3 of the answers that I found were straight up inaccurate!
Anyway, my question is very simple (for me it's confusing, but it's probably a walk in the park for you guys), how do I find value Y on a cubic Bézier, given value X?
I have been previously using a time property of sorts to iterate over my bezier, but that gives improper results. I found some people suggest that I should be solving for t given X, but I have no idea how I would go about doing that or if that's even the best solution.
Let's say I have the following cubic bezier: (0,1,0.5,0.5,0.5,0.5,1,0)
If I use t to find a point along said bezier, I receive non-linear results when incrementing t linearly. This is a huge problem for me and one that has been stumping me for quite some time.
What I need to do is use X in this case, where I can increase X from 0 to 1 linearly, and use that to sample for a given Y position on my curve, and I believe that this will solve my problem.
Can anybody explain to me how this would be done? Currently the only values that I have to work with are the anchor points + the control points of my bezier, I have no other information about it.
ap1x,ap1y,cp1x,cp1y,cp2x,cp2y,ap2x,ap2y– OOPS Studio Apr 10 '21 at 20:550.5,0.5Thank you for pointing that out! – OOPS Studio Apr 13 '21 at 04:50