I'm just looking into this issue.
Edit: Ok, guess it's solved. Locate and replace CurvySpline.DistanceToSegment() with
Hopefully that will fix it for all times!
Jake
PS: @Voxelboy: I removed your attached scene, because it contains the full Curvy package. Please be more careful next time! This is a public forum...
Edit: Ok, guess it's solved. Locate and replace CurvySpline.DistanceToSegment() with
Code:
public CurvySplineSegment DistanceToSegment(float distance, out float localDistance)
{
distance = Mathf.Clamp(distance,0, Length);
localDistance = 0;
CurvySplineSegment seg = mSegments[0];
if (distance == Length) {
seg = this[Count - 1];
localDistance = seg.Distance + seg.Length;
return seg;
}
while (seg && seg.Distance+seg.Length < distance) {
seg = NextSegment(seg);
}
if (seg == null)
seg = this[Count - 1];
localDistance = distance - seg.Distance;
return seg;
}
Hopefully that will fix it for all times!
Jake
PS: @Voxelboy: I removed your attached scene, because it contains the full Curvy package. Please be more careful next time! This is a public forum...