Computer Science Canada Colision problem |
Author: | TheCatsMeow [ Thu Jan 13, 2011 2:10 pm ] | ||
Post subject: | Colision problem | ||
What is it you are trying to achieve? What i want to happen is make my ball bounce of of a paddle. What is the problem you are having? What's going wrong is.. my ball will sometimes go through the paddle and will shake, go down and then go back up and shoot off. sometimes it will deflect even if the paddle isn't there. Describe what you have tried to solve this problem i've look through my code, and tried changing it a litte.. (Mainly i just changed the checking part of the code) Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
|
Author: | Tony [ Thu Jan 13, 2011 2:17 pm ] |
Post subject: | RE:Colision problem |
Pick one of the paddles (lets say left) and try to describe in words _all_ of the locations where a ball could be, for it to be deflected. That should point you towards some cases where problems could occur. |