float rx=0, ry=0, rz=1; // view angles PImage wood; // texture image //BALL B = new BALL(); int n = 4; BALL B[] = new BALL[n]; void setup() { size(600, 600, P3D); PFont font = loadFont("Courier-14.vlw"); textFont(font, 14); // load font wood = loadImage("floor.jpg"); // load texture textureMode(NORMALIZED); randomSeed(1234); for (int i=0; iheight-r) V.y=-V.y; if((C.x>width-r)||(C.x300-r)||(C.z<-300+r)) V.z=-V.z;} }