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.

Newcomers DBPro Corner / Collision detection problem

Author
Message
Ashir
18
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Caracas, Venezuela
Posted: 7th Nov 2007 16:50
Hi again guys, I'm still trying to do my pong and I'm stuck in the collision detection.

Could someone please tellme why the ball doesn't detect the collision with the player 2 pad?

Thanks in advance.

P.S: The images used are white so if you load the page and don'g see anything it's ok, they are in the upper left corner.



http://img252.imageshack.us/img252/5945/p00qm3.png
http://img252.imageshack.us/img252/7951/b00hq3.png
http://img209.imageshack.us/img209/2294/n00he7.png

Ashir
18
Years of Service
User Offline
Joined: 3rd Sep 2006
Location: Caracas, Venezuela
Posted: 7th Nov 2007 20:42
Hell... once again, the book for beguinners has fail me...

The collision is now fully functional.

Now I wonder, I originally wanted to do this:

If the ball hits the upper side of the pad the ball will rebounds back in a upper direction. If the ball hits the lower side of the pad the ball will rebounds back in a lower direction, and if the ball hits the center of the pad it will rebound back in straight line.

It's posible to do this, if so, how?

Login to post a reply

Server time is: 2024-11-25 12:37:49
Your offset time is: 2024-11-25 12:37:49