title: How to find distance mid point of bezier curve?
body: <p>I am making game in Unity engine, where car is moving along the bezier curve by percentage of bezier curve legth.</p>
  <p>On this image you can see curve with 8 stop points (yellow spheres). Between each stop point is 20% gap of total distance.</p>
  <p><a href="https://i.stack.imgur.com/sYIae.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sYIae.png" alt="enter image description here" /></a></p>
  <p>On the image above everything is working correctly, but when I move handles, that the handles have different length problem occurs.</p>
  <p><a href="https://i.stack.imgur.com/of5q1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/of5q1.png" alt="enter image description here" /></a></p>
  <p>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.</p>
  <p><a href="https://i.stack.imgur.com/hvXrG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hvXrG.png" alt="enter image description here" /></a></p>
  <p>As you can see on the image above, there are two mid points. T param mid point can be found by setting t to 0.5 (it is what i am doing now), but it is not half of the distance.</p>
  <p>How can I find distance mid point (for cubic bezier curve, that have handles in different distance)?</p>