Particle Systems in Processing    
     
09.27.04

<  ^  >

Fixing it with gravity

 

two ways to keep the particle from dropping

 

turning off gravity...

the unitlessness of it all

 

Example 2

  • gravity

 

PSystem ps;

void setup() {
  size(500,500);
  ps = (PSystem)loadPlugin("PSystem");
  
  Particle p = new Particle();
  p.setPos(width / 2, height/2, 0);
  ps.addParticle(p);
  ps.setGravity(0);
}

void loop() {
  background(#99CCCC);
  ps.draw();
}