Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
chris_p
· 14y ago · 0 comments
It's the number of neighbors each boid considers to calculate its velocity. There's also an option that defines the maximum distance for collision detection, but it's not accessible through the UI.
Comments
[–]
hythloday
14y ago
Thanks! The canonical data structure to avoid the O(n^2) lookup is a kdtree, which I think is reasonably easy to implement in coffeescript.