topical media & game development
graphic-processing-algorithm-Ch08-p195-p195.pde / pde
MyObject b = new MyObject(); //create an object
void setup(){
size(500,500, P3D); //setup the screen
camera(-100,100,-100,0,0,0,0,0,1); //get a viewpoint
}
void draw(){
b.draw3(); //draw the object
}
void mousePressed(){
b.pick(mouseX,mouseY); //see if the mouse can pick
}
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.