Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] SplineController skips on CurvySpline.ControlPoints[0].Delete()
#1
I have a SplineController script attached to an object, and the object travels along a spline perfectly.

However, when I delete a point from the spline, the object jumps forward:
Code:
spline.ControlPoints[0].Delete(); 
Spline.Refresh();

The object is already between points 5 and 6, far ahead of the control point in question.

If it helps, my goal is for the SplineController object to travel endlessly along a spline (typical endless runner). Periodically, I remove a control point from the beginning of the spline and add it to the end.

Thanks,
cristian
Reply


Messages In This Thread
[Solved] SplineController skips on CurvySpline.ControlPoints[0].Delete() - by cpoll - 02-02-2016, 12:27 AM

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: