Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
buzz_examples [2016/09/02 13:49] – [Square Pattern Formation] ilpincy | buzz_examples [2016/09/02 13:49] – [Hexagonal Pattern Formation] ilpincy | ||
---|---|---|---|
Line 77: | Line 77: | ||
var accum = neighbors.map(lj_vector).reduce(lj_sum, | var accum = neighbors.map(lj_vector).reduce(lj_sum, | ||
if(neighbors.count() > 0) | if(neighbors.count() > 0) | ||
- | math.vec2.scale(accum, | + | math.vec2.scale(accum, |
# Move according to vector | # Move according to vector | ||
goto(accum.x, | goto(accum.x, |