title: making objects constantly in a while loop
body: <p>I'm doing a project for a year 11 physics class and I'm trying to make a battery that generates electrons. This is the code:</p>
  
  <p><code>electron = sphere(radius = 1, color = color.yellow, vel = vec(-1,0,0));
  while battery.voltage &gt; 0:
      eb = electron.clone(pos=vec(0,0,0), vel = vec(-1,0,0));</code></p>
  
  <p>I'm trying to make "eb" constantly, but it only applies  <code>eb.pos = eb.pos + eb.vel * deltat;</code> apply to a the first electron. Is there any way to do this without making 600 different electron objects?</p>