i tried with bezier curves but it creates a problem.
you can see the tracks overlapping the wheel
i think its because the arc is too large and bezier curves can only approximate the circular arc.
i though about simply just splitting it up into smaller segments, but this only overcomplicates my already complicated code, and i have ran out of ideas.
from the look of it, you need to adjust the tangent at those two end points. they should be parallel to the tangent, now they are too inwards.
and also two points almost at the opposite side of a circle is a challenge.
but you can just add one point in between to make a much better approximation
huh i dont get what you mean?, also i though of a fix. since i’ve been using quadratic bezier for the curves maybe i have to switch to cubic ones instead because of this image
your green curve, you have one end point correctly go tangent,
but your other point is not tangent
do you understand what ‘tangent’ is? it means go along the circle direction.
in your graphs, your red curve end points are good, they follow the tangents
nevertheless, a cubic can approximate better than a quadratic, also if the end points too far from each other, you add one more in between points on the circle to reduce the deformation
red dots are the touching point and end points of the curve.
red line is the belt direction where it touches the circular barrel,
green line is your curve direction, we should have the green lines equals red lines for direction
add one more in between point can make it approximate the circle better