help my math
2 posters
Page 1 of 1
help my math
I know you people on this frome are smart. I need help on a simple math problem on a simple game im tying to make. (pong) its like the hello world for games. tounge.gif
i need to find out what the x/y of a point will be that is moving at a angel at a constant about of pixels.
example:
http://img524.imageshack.us/my.php?image=74787141lj1.png
did i explain this good?
this is what is trying to do. when the game starts i want the ball to start moving in a random direction.
i need to find out what the x/y of a point will be that is moving at a angel at a constant about of pixels.
example:
http://img524.imageshack.us/my.php?image=74787141lj1.png
did i explain this good?
this is what is trying to do. when the game starts i want the ball to start moving in a random direction.
Re: help my math
What is it on a grid? Shouldn't the X/Y point of the second circle be twice what the first one was.jackmackg wrote:I know you people on this frome are smart. I need help on a simple math problem on a simple game im tying to make. (pong) its like the hello world for games. tounge.gif
i need to find out what the x/y of a point will be that is moving at a angel at a constant about of pixels.
example:
http://img524.imageshack.us/my.php?image=74787141lj1.png
did i explain this good?
this is what is trying to do. when the game starts i want the ball to start moving in a random direction.
Re: help my math
xx = speed*cos((angle)*pi/180);
yy = speed*sin((angle)*pi/180);
i found what i needed.
yy = speed*sin((angle)*pi/180);
i found what i needed.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum