We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f98f375 commit 883a7c9Copy full SHA for 883a7c9
src/bittybuzz/buzz_scripts/behaviors/follow_leader.bzz
@@ -23,7 +23,7 @@ function tick_follow_leader(stig){
23
24
# Cummulating the avoidance vector
25
var avoidance_vec = obstructing_neighbors.reduce(function(rid, data, accum){
26
- var vec_length = -1/math.pow(data.distance, 1.5)
+ var vec_length = -0.8/data.distance
27
var vec = math.vec2.newp(vec_length, data.azimuth)
28
return math.vec2.add(vec, accum);
29
},
0 commit comments