def __calc_separation(self):
    steer = PVector.Instance(0, 0)
    for sprite in self._find(self, self.game.separation_radius, Sprite):
        d = self.distance(sprite)
        if (d == 0):
            continue
        diff = PVector((self.x - sprite.x), (self.y - sprite.y))
        diff.normalize()
        diff.div(d)
        steer.add(diff)
    return steer
def __calc_separation(self):
    steer = PVector.Instance(0, 0)
    for sprite in self._find(self, self.game.separation_radius, Sprite):
        d = self.distance(sprite)
        if (d == 0):
            continue
        diff = PVector((self.x - sprite.x), (self.y - sprite.y))
        diff.normalize()
        diff.div(d)
        steer.add(diff)
    return steer