# help my math

## 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.

**jackmackg**- Posts : 87

Join date : 2008-06-12

Age : 24

Location : texas dallas

## 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.

**TheHandofOdd**- Admin
- Posts : 371

Join date : 2008-06-11

Age : 36

Location : In A Box, USA

## 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.

**jackmackg**- Posts : 87

Join date : 2008-06-12

Age : 24

Location : texas dallas

Similar topics

» Classic Math vs. Common Core

» what is (or was) your least favorite part of high school?

» Is this math or arithmetic

» "THE PRIDE OF WALNUT GROVE"

» Academy Awards (Oscars) 2010

» what is (or was) your least favorite part of high school?

» Is this math or arithmetic

» "THE PRIDE OF WALNUT GROVE"

» Academy Awards (Oscars) 2010

Page

**1**of**1****Permissions in this forum:**

**cannot**reply to topics in this forum