Ball Direction in "Pong" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Ball Direction in "Pong"

how do i need to calculate ball direction when he hit the board frame. my board is 2 dimension array.

31st Aug 2017, 10:36 AM
Cain Eviatar
Cain Eviatar - avatar
1 Answer
+ 8
divide the paddle up into a bunch of smaller collision boxes
31st Aug 2017, 10:49 AM
jay
jay - avatar