05-12-2014, 04:09 PM
Jake,
That was exactly the problem, thank you! I've resolved it by adding all the splines into a new Stack object that makes sure they are in order, then on each Update I call the following function:
They get added in order regardless of the order they become initalized in and the debug functions I mentioned before that crapped out now show proper data.
Thanks again!!
That was exactly the problem, thank you! I've resolved it by adding all the splines into a new Stack object that makes sure they are in order, then on each Update I call the following function:
Code:
private void connectBlockSplines()
{
if(addSplineStack.Count == 0)
return;
bool doneAdding = false;
while(!doneAdding)
{
CurvySpline nextSpline = addSplineStack.Peek();
if(!nextSpline.IsInitialized)
doneAdding = true;
else
{
movementPathSplineGroup.Add(nextSpline);
addSplineStack.Pop();
if(addSplineStack.Count == 0)
doneAdding = true;
}
}
}
They get added in order regardless of the order they become initalized in and the debug functions I mentioned before that crapped out now show proper data.
Thanks again!!