The Wikipedia article doesn't seem too bad about it...
If I understand what you're after correctly, you have a starting position and an angle that the bullet is going, and you want to get the position of the bullet after time t, when it's travelling at a speed s.
Firstly I'd work in velocity and not speed, since velocity is a vector itself and can just be added to the current location easily. The new location = The old location + (The velocity * the time difference). This assumes that the location can be described as [X, Y] and the velocity as [dX, dY] (Possibly with Z and dZ if necessary, which it's not here). This means simply that X2 = X + (dX * t) and Y2 = Y + (dY * t).
To get the velocity from the speed and the angle is, as you said, a case of using sin/cos. In this case, dX = s * cos(a), where a is the angle and s is the speed. dY = s * sin(a) for the same values. |