def __calc_allignment(self):
    steer = PVector.Instance(0, 0)
    for sprite in self._find(self, self.game.allignment_radius, Boid):
        d = self.distance(sprite)
        if (d == 0):
            continue
        copy = PVector.Instance(sprite.dx, sprite.dy)
        copy.normalize()
        copy.div(d)
        steer.add(copy)
    return steer
def __calc_allignment(self):
    steer = PVector.Instance(0, 0)
    for sprite in self._find(self, self.game.allignment_radius, Boid):
        d = self.distance(sprite)
        if (d == 0):
            continue
        copy = PVector.Instance(sprite.dx, sprite.dy)
        copy.normalize()
        copy.div(d)
        steer.add(copy)
    return steer