I am making game in Unity engine, where car is moving along the bezier curve by percentage of bezier curve length.
On this image you can see curve with $8$ stop points (yellow spheres). Between each stop point is $20\%$ gap of total distance.
On the image above everything is working correctly, but when I move handles, that the handles have different length problem occurs.
As you can see on image above, distances between stop points are not equal. It is because of my algorithm, because I am finding point of segment by multiplying segment length by interpolation $(t)$. In short problem is that: if $t=0.5$, it is not in the $50\%$ percent of the segment. As you can see on first image, stop points are in half of segment, but in the second image it is not in half of segment. This problem will be fixed, if there is some mathematical formula, how to find distance middle point.
As you can see on the image above, there are two mid points. T param mid point can be found by setting $t = 0.5$ (it is what I am doing now), but it is not half of the distance.
How can I find distance mid point (for cubic bezier curve, that have handles in different distance)?