Hi guys,
As hinted at by the topic title, I'm currently trying to move an object along a parameterized curve with constant speed.
Following advice in several older forum posts, I'm using the numerical solution for reparameterization that's presented at page 8 of this paper.
This works great for the simplest case, in which there's only 1 segment.
But when calling GetCurveParameter(curve.length) for a curve with more than 1 segment, it will return a t-value which is much larger than 1 (my chosen tmax).
The solution is most likely described at page 11 ("Handling Multiple Contiguous Curves"), but I'm having trouble understanding the how and why of this approach. For example the comment that says
// We know that LSegment[i-1] <= s < LSegment.
seems wrong to me, given that earlier code seems to fill the LSegment array with the length of each segment.
If anyone here could help me understand this in any way, I would be much obliged!
Thanks in advance,
Tristan