Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] SplineController skips on CurvySpline.ControlPoints[0].Delete()
#4
By default orientation is calculated automatically using an enhanced Parallel Transport Frame (PTF) algorithm. That's why it changes slightly when you add/remove CP's. To prevent that flag some CP's (at least one before your visible "track", one behind) as OrientationAnchors. PTF then takes this anchors as start/end conditions, thus calculating only a smooth path between those anchors. Just play with anchors in the editor to see it at work and get the idea.

Note that when you enable an anchor, the current orientation (usually auto-calculated) is set, but you can rotate the transform to alter that.

Also note that this has a nice performance side effect, because when you change the spline, only orientation of the affected anchor group (segments between two anchors) needs to be recalculated. Say we have a spline with 1000 CP's. When you change the first CP, whole orientation needs to be recalculated. If you set CP 500 to be an anchor group, only the first 500 CP need an orientation update. But that's just spline refreshment magic happening behind the scenes...
Reply


Messages In This Thread
RE: SplineController skips on CurvySpline.ControlPoints[0].Delete() - by Jake - 02-04-2016, 06:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Thumbs Up Can't delete connection lacota 3 6 03-16-2024, 11:34 AM
Last Post: _Aka_
  I have a question about curvySpline haifeng.huang 12 32 07-14-2023, 09:34 AM
Last Post: _Aka_
Thumbs Up Assembly Definitions (Solved) lacota 3 6 06-01-2023, 11:04 AM
Last Post: _Aka_
  "Deadloop in CurvySPline.Refresh" spam Valkymaera 3 11 05-30-2023, 10:56 AM
Last Post: _Aka_

Forum Jump: