(02-01-2017, 07:45 PM)Jake Wrote: Hi,
there is no builtin solution and Curvy doesn't store curvation deltas directly. But you can access CurvySplineSegment.ApproximationT[] to get tangents (i.e. direction) of cache points and calculate directional velocity from this.
To find the array index to start use getApproximationIndexINTERNAL().
To max this, create a custom metadata class that automatically fills an array (ApproximationDirVel[] or such). You then can easily access that from a custom controller to add smooth rolling.
Does that help?
Hi Jake,
This makes sense, I have some questions though:
- Will this method work even when my SplineController subclass does not have "Use Cache" checked?
- Could you explain more about this custom metadata class? Would this class be attached to a Control Point object? Wouldn't that only let me adjust the roll of the custom controller per control point with interpolation in between? This might not match the curve between points.
Kyle