Spline Joint

hi,
I saw "Spline Joint" in the TODOs, I was wondering if this would be a joint which constrains a point on one body to lie on a spline bound to another body. Do you plan on supporting motorized movement along the spline? We're working on similar functionality and it's not exactly clear how to best do this.

thanks,
raigan
Think of it as a motorized rollercoaster. Rotation can also be constrained to the tangent.
I was wondering how to handle constraints involving the tangent in a way that isn't equivalent to explicit euler; if you just assume the current tangent vector is correct, you get overshooting for arbitrarily small movements along the tangent. This might not be a big deal, currently our hacky test is having problems with corners (we're using polylines rather than splines though) and I figured this might be the cause.

So far all I can think of is to use a reduced-coordinate type of approach. There is also the problem of how to determine the correct "closest point" on the spline, since choosing the current closest point can lead to popping problems where the point jumps from one side of a "V"-type shape to the other.

Original thread: https://box2d.org/forum/viewtopic.php?t=131