modified core/Boid.