08-27-2021, 11:38 PM
I have a Spline where the number of control points could change but the total length will always stay the same.
I'm using absolute positioning for the Spline Controllers, and storing their "Position" in another variable outside of the Spline Controller so when the number of control points changes, I can remap its position exactly where it was.
It seems that when I change the number of control points, Spline.Length takes a moment before the results are accurately reflected and there's a moment of artifacting where some of the Spline Controller Objects are disoriented and all over the spline. Seems to only happen for one frame and then everything goes back to normal.
I've tried changing the Update in to LateUpdate, as well as setting the CacheDensity to 0 and calling Spline.Refresh();
Any help greatly appreciated!
I'm using absolute positioning for the Spline Controllers, and storing their "Position" in another variable outside of the Spline Controller so when the number of control points changes, I can remap its position exactly where it was.
It seems that when I change the number of control points, Spline.Length takes a moment before the results are accurately reflected and there's a moment of artifacting where some of the Spline Controller Objects are disoriented and all over the spline. Seems to only happen for one frame and then everything goes back to normal.
I've tried changing the Update in to LateUpdate, as well as setting the CacheDensity to 0 and calling Spline.Refresh();
Any help greatly appreciated!