Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
interpolate to nth control point
#2
Hi
When you use a someControlPoint.Interpolate, you have a position between that control point and the next one, so cp3.Interpolate returns a position between cp3 and cp4
Also, the first parameter is not a %. Please read the method's documentation to understand what that parameter means. More information here: https://curvyeditor.com/documentation/sp...]=tf#units
Each control point has a Distance and TF values. You also have a InterpolateByDistance method. The max value of TF is 1 and the max value of Distance is Spline.Length. With all this information you should be able to find any point at any position on the spline.
I hope this helped
Have a nice day
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: interpolate to nth control point - by _Aka_ - 02-22-2021, 08:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Control Point Interpolation Overrides. rickgplus 1 1,009 12-11-2025, 08:52 AM
Last Post: _Aka_
  12_Train junction point richardzzzarnold 5 4,220 04-16-2025, 02:19 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 3,959 02-04-2025, 09:31 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 1,994 12-10-2024, 10:14 PM
Last Post: _Aka_

Forum Jump: