From 8b901b1432b7252c3284a091218ff9434bccc0f0 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 20 Nov 2018 12:58:35 +0100 Subject: [PATCH] fixed a bug: check_range was used instead of coh_range --- rogueviz-flocking.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rogueviz-flocking.cpp b/rogueviz-flocking.cpp index 251e97dd..c5a678aa 100644 --- a/rogueviz-flocking.cpp +++ b/rogueviz-flocking.cpp @@ -39,7 +39,7 @@ namespace flocking { ld align_range = .5; ld coh_factor = 1; - ld coh_range = .5; + ld coh_range = 2.5; ld check_range = 2.5; @@ -168,7 +168,7 @@ namespace flocking { col |= 0xFF00FF; } - if(di < check_range) { + if(di < coh_range) { // azimuthal equidistant projection of ac // (thus the cohesion force pushes us towards the // average of azimuthal equidistant projections)