Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix Boids MergeCell ExecuteNext bug
  • Loading branch information
Tim committed Oct 18, 2023
commit 37ad0fd3cfb5b4c7040045d8e73ee4c1c0250442
4 changes: 2 additions & 2 deletions EntitiesSamples/Assets/Boids/Scripts/BoidSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ public void ExecuteFirst(int index)
public void ExecuteNext(int cellIndex, int index)
{
cellCount[cellIndex] += 1;
cellAlignment[cellIndex] += cellAlignment[cellIndex];
cellSeparation[cellIndex] += cellSeparation[cellIndex];
cellAlignment[cellIndex] += cellAlignment[index];
cellSeparation[cellIndex] += cellSeparation[index];
cellIndices[index] = cellIndex;
}
}
Expand Down