Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
DK_
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 7th Feb 2004 23:42
I need help with making my pong game.
All I need to know is a good equation to get the angle of the ball as it bounces off of things.

Chris K
20
Years of Service
User Offline
Joined: 7th Oct 2003
Location: Lake Hylia
Posted: 8th Feb 2004 00:44 Edited at: 8th Feb 2004 00:45
Bouncing off the bat:



Bouncing off the top and bottom walls:



Sparda
20
Years of Service
User Offline
Joined: 13th Jan 2004
Location: Pacifica
Posted: 8th Feb 2004 19:56
Use this for 3D pong:

rotate the X angle of the ball when it hits the top/bottom walls
rotate the Y angle of the ball when it hits the left/right walls

Login to post a reply

Server time is: 2024-09-21 21:20:22
Your offset time is: 2024-09-21 21:20:22