Skip to content

Commit

Permalink
code freeze megagénial (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
xgroleau authored Nov 25, 2021
1 parent f98f375 commit 883a7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bittybuzz/buzz_scripts/behaviors/follow_leader.bzz
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function tick_follow_leader(stig){

# Cummulating the avoidance vector
var avoidance_vec = obstructing_neighbors.reduce(function(rid, data, accum){
var vec_length = -1/math.pow(data.distance, 1.5)
var vec_length = -0.8/data.distance
var vec = math.vec2.newp(vec_length, data.azimuth)
return math.vec2.add(vec, accum);
},
Expand Down

0 comments on commit 883a7c9

Please sign in to comment.