Ejemplo n.º 1
0
 private void HandlePlayerAndBallCollision(Rectangle ballRectangle, PlayerModel player)
 {
     if (player.IntersectsWith(ballRectangle))
     {
         player.SetBallVelocityAfterCollision(this);
     }
 }