Why won't it let me use Box(); I am using p3d

void Setup(){

size(700,700,P3D); }

void draw(){ background(0);

if(mousePressed){// This if statement should allow the user to click and make a box appear pushMatrix(); translate(mouseX0.01,mouseY0.01); rotateX(mouseX); rotateY(mouseY); box(150); popMatrix(); } }

Tagged:

Answers

Sign In or Register to comment.