void setVelocity(double vx, double vy) { this.vx = vx; this.vy = vy; particles = List<Particle?>.filled(numParticles, null); init(); }