reflex merge {
list<Agents> Neighbours <- find neighbbours that are directly next to me
loop n over: Neighbours {
geometry new_shape <- (myself.shape + n.shape)
create new agent {
shape <- new_shape
}
}
reflex merge {
list<Agents> Neighbours <-
(Agents overlapping self) + self;
create Agents {
shape <- union(
Neighbours);
}
}
Cheers,
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platform+unsubscribe@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.