//GLOBAL VARS : available to all methods in all tabs final int noCars = 10; //no of vehicles. the keyword 'final' indicates that it is a constant. MyVehicle[] v = new MyVehicle[noCars]; //vehicle array of the size 'noCars' float safeDistance = 40.0; //distance below which collision is detected PFont f; //declare font //The SETUP method is called once when the applet/application starts off. //Consider this a 'point or method of entry' void setup() { //size method declares the size of the applet window and to use the 3d //libraries (P3D or OPENGL it must be declared in this size method size (400,400,P3D); for (int i = 0; i