1
Answer

Random direction Panel

Photo of Tayyib Solmaz

Tayyib Solmaz

3y
726
1

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)