Skip to content

Commit

Permalink
offset initial connection distance corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Nov 24, 2024
1 parent 33f6209 commit 8c71bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/EngineGpuKernels/ConstructorProcessor.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ ConstructorProcessor::startNewConstruction(SimulationData& data, SimulationStati
if (!constructionData.isLastNodeOfLastRepetition || !constructionData.genomeHeader.separateConstruction) {
auto distance = constructionData.isLastNodeOfLastRepetition && !constructionData.genomeHeader.separateConstruction
? constructionData.genomeHeader.connectionDistance
: constructionData.genomeHeader.connectionDistance + 0.6f;
: constructionData.genomeHeader.connectionDistance + 0.8f;
if(!CellConnectionProcessor::tryAddConnections(data, hostCell, newCell, anglesForNewConnection.referenceAngle, 0, distance)) {
CellConnectionProcessor::scheduleDeleteCell(data, cellPointerIndex);
}
Expand Down Expand Up @@ -486,7 +486,7 @@ __inline__ __device__ Cell* ConstructorProcessor::continueConstruction(
//move connection between lastConstructionCell and hostCell to a connection between newCell and hostCell
auto distance = constructionData.isLastNodeOfLastRepetition && !constructionData.genomeHeader.separateConstruction
? constructionData.genomeHeader.connectionDistance
: constructionData.genomeHeader.connectionDistance + 0.6f;
: constructionData.genomeHeader.connectionDistance + 0.8f;
for (int i = 0; i < hostCell->numConnections; ++i) {
auto& connectedCell = hostCell->connections[i];
if (connectedCell.cell == constructionData.lastConstructionCell) {
Expand Down

0 comments on commit 8c71bcf

Please sign in to comment.