I am making a Particle simulator thing and I couldn't work out the formula for finding the new position of a particle using only the direction and distance. If anyone knows any answers would be appreciated.
// assuming:
// 'x' and 'y' are the current position
// 'angle' is an angle specifying which direction the particle is moving
// 'speed' is the speed at which the particle is moving
x += cos( angle ) * speed;
y += sin( angle ) * speed;