update method
Implementation
void update(double dt) {
life -= dt / maxLife;
position += velocity * dt;
velocity += const Offset(0, 180.0) * dt; // Gravity pulling splash droplet back down
}
void update(double dt) {
life -= dt / maxLife;
position += velocity * dt;
velocity += const Offset(0, 180.0) * dt; // Gravity pulling splash droplet back down
}