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:
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
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