class KBoid extends Boid{ KBoid(){//Vector3D v, float ms, float mf) { //super(4.0);//v, ms, mf); r = 4.0; } KBoid(Vector3D v, float ms, float mf) { super(v, ms, mf); r = 20.0; } void render() { float theta = vel.heading2D() - radians(90); push(); translate(loc.x(),loc.y(),loc.z()); rotateZ(theta); rotateX(theta); rotateY(theta); noFill(); stroke(255); box(r,r,r); stroke(255,0,0); line(loc.x()-10, loc.y(),loc.x()+10, loc.y()); stroke(0,255,0); line(loc.x(), loc.y()-10,loc.x(), loc.y()+10); stroke(255); line(loc.x(), loc.y(), loc.z()-10,loc.x(), loc.y(), loc.z()+10); pop(); } }