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.

Code Snippets / Bounce Calculation. Dbpro.

Author
Message
coolgames
20
Years of Service
User Offline
Joined: 26th Sep 2005
Location: Oregon, USA
Posted: 6th Mar 2006 23:15
Here is a function that will calculate the new yangle of a ball after it bounces off a wall. You specify the angle of the wall and ball. The angles are the y angles. So the wall will be strait up and down.

Here is the code


I have no Idea if it works with dbclassic. I don't have it.

Login to post a reply

Server time is: 2026-06-12 03:35:46
Your offset time is: 2026-06-12 03:35:46