Computer Science Canada ball bounce off the brick |
Author: | uknowhoiam [ Tue Apr 14, 2009 9:12 pm ] | ||||
Post subject: | ball bounce off the brick | ||||
What is it you are trying to achieve? I want the ball to bounce off the brick What is the problem you are having? the ball will not bounce off the bricks Describe what you have tried to solve this problem
That is what i have done Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using <Answer Here> [syntax=""][/syntax][syntax=""][/syntax] |
Author: | Tony [ Tue Apr 14, 2009 9:26 pm ] | ||
Post subject: | RE:ball bounce off the brick | ||
I'm not exactly sure what those variables are, but
sounds awfully specific. |
Author: | TokenHerbz [ Wed Apr 15, 2009 3:15 am ] | ||
Post subject: | Re: ball bounce off the brick | ||
hey bud, yea you gotta make your var's names better anyways check out the part i changed in your code,
try to understand why that works, its rough lol but better then nothing, it IS 4:15 am lol im off to bed.. |
Author: | uknowhoiam [ Wed Apr 15, 2009 6:54 pm ] | ||
Post subject: | RE:ball bounce off the brick | ||
The problem with the above code is that, if the ball if below the brick (like not even touching it) the ball will boucne off But Hey you got it to bounce |
Author: | Dusk Eagle [ Wed Apr 15, 2009 10:03 pm ] | ||
Post subject: | Re: RE:ball bounce off the brick | ||
uknowhoiam @ Wed Apr 15, 2009 7:54 pm wrote:
The problem with the above code is that, if the ball if below the brick (like not even touching it) the ball will boucne off That's true, but you've seen the basic idea so now you know how it's done. Now you just have to apply your knowledge to all four sides of the ball and brick to make collision detection complete. |