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
  Play() does not cause SplineController to produce expected behaviour ConCat 8 1,401 02-08-2026, 11:54 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,470 07-29-2025, 09:15 PM
Last Post: _Aka_
  Destroying curvyspline instances jmh1804 5 3,035 09-18-2024, 07:52 AM
Last Post: _Aka_
  CurvySpline Optimize Candy 1 1,459 08-02-2024, 08:35 AM
Last Post: _Aka_

Forum Jump: