04.07.08 Code Outline

From KokkugiaWiki

import kGeom.*;
import kRender.*;

//global variable declarations

kSpace space;
//declare agent array
//declare repulsor array
//declare attractor array

//setup function

void setup(){
size(800,800,P3D);
stroke(255);
fill(255);
smooth();
 
space = new kSpace(this);
space.cam.jump(-600,-550,-500);
//fill agent array
//fill attractor array
//fill repulsor array
}
//end of setup

//draw function

void draw(){
background(255);
space.render();
//agent update
//search
//looking around
//moving
//agent refresh
//repulsor refresh
//attractor refresh
//saveframe
}
//end of draw

//class declarations

//attractor points
 
//variable
//constructor
//methods
 
//repulsor points
 
//variable
//constructor
//methods
 
//agents
 
//variable 
//constructor
   
//initial direction
//sight radius
//speed
//thickness
   
//methods
      
//searching
//random vector
//aligning
//based on material "strength"
//departing
//random
//at given angles
//update
//refresh
Views
Personal tools