
-----------------------------------
Velocity
Tue Dec 27, 2011 1:07 am

Table pong collision
-----------------------------------
The oval used for the ball to bounce off of is see throught and it can be moved left and right using the "a" and "d" keys, how do i make it so that when the ball hits the paddle it bounces back to the other side.

-----------------------------------
Aange10
Tue Dec 27, 2011 2:31 am

RE:Table pong collision
-----------------------------------
Draw it on a piece of paper and think about what you want to happen. [url=http://compsci.ca/v3/viewtopic.php?t=13661] Collision Detection is a great tutorial. Though the syntax is different from C++, it is easy to read.

-----------------------------------
Serapth
Thu Jan 12, 2012 1:45 pm

RE:Table pong collision
-----------------------------------
[url=http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition.aspx]This C++ tutorial I just finished posting in the tutorials section involves creating a Pong game from scratch.  In many ways it is over-engineered ( on purpose ), but it does show how to handle collision detection in [url=http://www.gamefromscratch.com/page/Game-From-Scratch-CPP-Edition-Part-7.aspx]this section specifically.

-----------------------------------
Velocity
Wed Jan 18, 2012 6:17 pm

RE:Table pong collision
-----------------------------------
Aange thanks alot. and seraph i didnt really understand the one u wrote
