Handbook
Glossary
separation
Vocabulary
boids
.
simulation
Definition
IN:
boids.simulation
TUPLE:
separation
<
behavior
;
Methods
USING:
accessors
boids.simulation
kernel
math.vectors
sequences
;
M::
separation
force
( neighbors boid behavior -- force )
behavior
radius>>
:>
r boid
pos>>
neighbors
[
pos>>
v-
[
normalize
]
[
r
v/n
]
bi
v-
]
with
map
vsum
;