Page 2 of 2

Re: Help, velocity and direction

Posted: Thu May 20, 2010 8:12 am
by RyanPridgeon
Avishaiozeri wrote:I'm working on a pong game, because i'm a total noob... I'm good with math, but i'm learning all the stuff you're talking about this year, so i'm still not totally comfortable with some concepts...
Well just stick with it. Ability in maths is an awesomely useful skill, and it only gets better later on :)

Re: Help, velocity and direction

Posted: Thu May 20, 2010 8:18 am
by Avishaiozeri
RyanPridgeon wrote:
Avishaiozeri wrote:I'm working on a pong game, because i'm a total noob... I'm good with math, but i'm learning all the stuff you're talking about this year, so i'm still not totally comfortable with some concepts...
Well just stick with it. Ability in maths is an awesomely useful skill, and it only gets better later on :)
Thanks man, i'm totally grateful for your help, i owe you! :)
Edit: Sorry if it sounded arrogant when i said i'm good with math..

Re: Help, velocity and direction

Posted: Thu May 20, 2010 10:14 am
by Avishaiozeri
Hey guys, sorry for the double post. I have an idea, will it work if i'll make that the direction of the ball will be decided by the place it hits the player paddle? like if it'll hits the left, the ball will be thrown to the left or if on the right, to the right etc. ?

Re: Help, velocity and direction

Posted: Thu May 20, 2010 1:22 pm
by eatcomics
yep, and that should be easy to do :D

Re: Help, velocity and direction

Posted: Thu May 20, 2010 1:25 pm
by short
Avishaiozeri wrote:Hey guys, sorry for the double post. I have an idea, will it work if i'll make that the direction of the ball will be decided by the place it hits the player paddle? like if it'll hits the left, the ball will be thrown to the left or if on the right, to the right etc. ?
It all depends on what you want your game mechanics to do. If that's what you want it to do, then go for it. If you want it to speed up or slow down based on the angle of impact from the center of the paddle you could do that. It's entirely up to you, and the math isn't going to be terribly difficult for anything you can come up for a pong game.

Re: Help, velocity and direction

Posted: Thu May 20, 2010 3:29 pm
by Avishaiozeri
I tried it, and it works nicely. thank you all for the help!