I've been analyzing BoidSystem and got to realization that there is a possible mistake in MergeCells job. In the ExecuteNext method to be precise. I suppose instead of this:
public void ExecuteNext(int cellIndex, int index)
{
cellCount[cellIndex] += 1;
cellAlignment[cellIndex] += cellAlignment[cellIndex];
cellSeparation[cellIndex] += cellSeparation[cellIndex];
cellIndices[index] = cellIndex;
}
should it be like this:
public void ExecuteNext(int cellIndex, int index)
{
cellCount[cellIndex] += 1;
cellAlignment[cellIndex] += cellAlignment[index];
cellSeparation[cellIndex] += cellSeparation[index];
cellIndices[index] = cellIndex;
}
I've been analyzing BoidSystem and got to realization that there is a possible mistake in MergeCells job. In the ExecuteNext method to be precise. I suppose instead of this:
should it be like this: