Author |
Message |
Velocity

|
Posted: Tue Dec 27, 2011 1:07 am Post subject: 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. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Aange10

|
Posted: Tue Dec 27, 2011 2:31 am Post subject: RE:Table pong collision |
|
|
Draw it on a piece of paper and think about what you want to happen. Collision Detection is a great tutorial. Though the syntax is different from C++, it is easy to read. |
|
|
|
|
 |
Serapth
|
Posted: Thu Jan 12, 2012 1:45 pm Post subject: RE:Table pong collision |
|
|
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 this section specifically. |
|
|
|
|
 |
Velocity

|
Posted: Wed Jan 18, 2012 6:17 pm Post subject: RE:Table pong collision |
|
|
Aange thanks alot. and seraph i didnt really understand the one u wrote |
|
|
|
|
 |
|