BANANAMAN
Resident Star Battle Expert.
- Reaction score
- 150
So yeah I've been tasked to create a 3D pong simulation that requires the Ball to move at the X,Z and possibly the Y axis.
I know how to make the ball move across the "field of play" and bounce when it hits a paddle. The question is,When i place certain obstacles on the field when the ball hits it not only bounces back horizontally but sometimes vertically as well and as realistically as possible and i only know it might have something to do with the rand() function and several condition/switch statements.
I know how to make the ball move across the "field of play" and bounce when it hits a paddle. The question is,When i place certain obstacles on the field when the ball hits it not only bounces back horizontally but sometimes vertically as well and as realistically as possible and i only know it might have something to do with the rand() function and several condition/switch statements.