def next_position_ball(self, ball): try: ball = Ball(ball.position, ball.vitesse) ball.next(V2D()) except: ball = Ball(ball.ball.position, ball.ball.vitesse) ball.next(V2D()) return ball
def next_position_ball(self, ball): try: ballo = Ball(V2D(ball.position.x, ball.position.y), V2D(ball.vitesse.x, ball.vitesse.y)) ballo.next(V2D()) except: ballo = Ball(V2D(ball.ball.position.x, ball.ball.position.y), V2D(ball.ball.vitesse.x, ball.ball.vitesse.y)) ballo.next(V2D()) return ballo
def babal(self, ball): br = Ball(ball) br.next(V2D()) return br