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
  Is curvyspline a good solution for a 2D rail grinding game? bazz_boyy1 2 6 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_
  CurvySpline Editor event ATHellboy 1 1,799 03-08-2020, 01:51 PM
Last Post: _Aka_
  [Fixed]CurvySpline.Length can return 0 during init stage c0ffee 2 2,167 01-16-2020, 01:56 AM
Last Post: c0ffee

Forum Jump: