Once you have the actual behavior, everything else is just animation. Maybe you could evolve some keyframes fitting particular criteria?