Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
 def babal(self, ball):
     br = Ball(ball)
     br.next(V2D())
     return br