diff --git a/examples/boid_flockers/boid_flockers/boid.py b/examples/boid_flockers/boid_flockers/boid.py index d02d395d..2390ff1d 100644 --- a/examples/boid_flockers/boid_flockers/boid.py +++ b/examples/boid_flockers/boid_flockers/boid.py @@ -99,7 +99,7 @@ def step(self): self.cohere(neighbors) * self.cohere_factor + self.separate(neighbors) * self.separate_factor + self.match_heading(neighbors) * self.match_factor - ) / 2 + ) self.direction_vector /= np.linalg.norm(self.direction_vector) new_pos = self.pos + self.direction_vector * self.speed self.model.space.move_agent(self, new_pos)