Tayyib Solmaz

Tayyib Solmaz

  • NA
  • 3
  • 643

Random direction Panel

May 4 2022 3:24 PM

Hi everyone,

I have made a Ping Pong game in c# (windows forms). Now if the Ball collides with the paddle it should go in a random direction. I know how to let it bounce in the same angel by just multiply X and Y with -1, but how do i get a random direction? Thanks in forward


Answers (1)