Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interpolate not respecting CurvySpline translation
I have a CurvySpline with CurvySplineSegment nodes underneath it. If I leave the CurvySpline position at 0,0,0. The Interpolate() function gives me back precise position data where the spline shows.

If I put a translation in the position of the CurvySpline node, the interpolation is offset from the CurvySplineSegments by the translation amount. What am I doing wrong here?

My "work around", (which may just be the solution) is to add the SplineCurves translation to the result returned by Interpolate(). Then its correctly concatenated. I just was expecting the interpolation function to do this for me. If anyone knows of a "magic switch" that sets Curvy into this mode automatically, let me know.
Speaking of controllers, there is an option "Space" to use world mode.

But in general Curvy splines return local space coordinates. It's faster and most of time it's what you want. Just transform the results into world space! There is even a convenience method, see here!

Possibly Related Threads…
Thread Author Replies Views Last Post
  I have a question about curvySpline haifeng.huang 12 32 07-14-2023, 09:34 AM
Last Post: _Aka_
  "Deadloop in CurvySPline.Refresh" spam Valkymaera 3 11 05-30-2023, 10:56 AM
Last Post: _Aka_
  Is curvyspline a good solution for a 2D rail grinding game? bazz_boyy1 2 8 03-01-2022, 11:49 AM
Last Post: _Aka_
  interpolate to nth control point appropriate_ladder 1 670 02-22-2021, 08:27 AM
Last Post: _Aka_

Forum Jump: