expecting EOF, found 'DIMX'
in
Programming Questions
•
7 months ago
hi everyone
i am new to process and i am having this issue here to play with swarm behavior tutorial
here's my code. Many thanks for your time!!!
import toxi.math.conversion.*;
import toxi.geom.*;
import toxi.math.*;
import toxi.geom.mesh2d.*;
import toxi.util.datatypes.*;
import toxi.util.events.*;
import toxi.geom.mesh.subdiv.*;
import toxi.geom.mesh.*;
import toxi.math.waves.*;
import toxi.util.*;
import toxi.math.noise.*;
import peasy.test.*;
import peasy.org.apache.commons.math.*;
import peasy.*;
import peasy.org.apache.commons.math.geometry.*;
import plethora.core.*;
import processing.opengl.*;
import controlP5.*;
PMatrix3D currCameraMatrix;
PGraphics3D g3;
PeasyCam cam;
ControlP5 controlP5;
int pop = 600;
DIMX = 600; DIMY=600;DIMZ=600;
ArrayList <Ple_Agent>boids;
void setup(){
size(800,800,OPENGL);
g3 = (PGraphics3D)g;
cam = new PeasyCam(this, 600);
initGUI();
boids = new ArrayList<Ple_Agent>();
for(int i=0; i<pop; i++){
Vec3D v = new Vec3D(0,0,0);
Ple_Agent pa = new Ple_Agent(this, v);
Vec3D initialVelocity = new Vec3D (random(-1, 1), random(-1, 1), 0 );
pa.setVelocity(initialVelocity);
pa.initTail(5);
boids.add(pa);
}
controlP5.setAutoDraw(false);
}
void draw(){
background(235);
if (controlP5.window(this).isMouseOver()) {
cam.setActive(false);
} else {
cam.setActive(true);
}
gui();
}
void gui() {
currCameraMatrix = new PMatrix3D(g3.camera);
camera();
controlP5.draw();
g3.camera = currCameraMatrix;
}
1