This function is passed to actors_foreach and will be called for each actor driven by behaviour.
behaviour