float velocity = graphicsRandom.rand(min_initial_velocity, max_initial_velocity);
float angle = graphicsRandom.rand(min_angle, max_angle) * (M_PI / 180); // convert to radians
- particle->vel.x = (cos(angle)) * velocity;
- particle->vel.y = (-sin(angle)) * velocity;
+ // Note that angle defined as clockwise from vertical (up is zero degrees, right is 90 degrees)
+ particle->vel.x = (sin(angle)) * velocity;
+ particle->vel.y = (-cos(angle)) * velocity;
particles.push_back(particle);
}