
import processing.core.*;


//--------------------------- making things move
//--------------------------- example 07 _ 01
//--------------------------- zachary lieberman / zlieb@parsons.edu

/*
   
   I don't move on my own any more, pm moves me...
   
*/

//---------------
class particle {

  Vector3D      pos;
  Vector3D      vel;
  Vector3D      frc;
  boolean    bAlive;
  boolean    bFixed;

  //---------------
  particle(){
    bAlive = false;  
    pos = new Vector3D(0,0,0);
    vel = new Vector3D(0,0,0);
    frc = new Vector3D(0,0,0);
    bAlive = true;
  }
  
  void set(particle p){
    this.pos.set(p.pos);
    this.vel.set(p.vel);
    this.frc.set(p.frc);
    this.bAlive = p.bAlive;
    this.bFixed = p.bFixed;
    
  
  }
  
  //---------------
  void setPropertiesAndTurnOn(Vector3D posIn, Vector3D velIn){
    bAlive = true;
    pos.set(posIn);
    vel.set(velIn);
  }
  
  //---------------
  void idle(){ 
    // I don't idle no more!
  }
  
  //---------------
  void draw(PApplet mom){
     mom.fill(255);
     mom.noStroke();
     mom.ellipseMode(mom.CENTER);
     mom.ellipse(pos.x, pos.y, 7,7);
  }
}
