class boz{ PVector vel; PVector pos; float xx; float yy; float zz; boz(int x, int y, int z, int s){ vel= new PVector(.1,0,.1); pos = new PVector(x,y,z); xx= pos.x; yy = pos.y; zz = pos.z; } void update(float i){ vel.set(random(-0.5,0.5),random(-0.5,0.5),random(-0.5,0.5)); pos.add(vel); } void render(){ translate(pos.x,pos.y,pos.z); box(random(1,10)); translate(0,0,0); } }