//This is a fork that follows the mouse class fork{ //these are going to be the parameters that change the dimentions of the fork float rtall; float rwidth; float tineL; float diameter; //fork function fork(){ rtall = 90; rwidth = 10; tineL = rtall*.4; diameter = 2.5*rwidth; } //show the fork void show(){ fill(0); //if pressed then it will stab. //if not there's a shadow where it will hit if(mousePressed){ translate(mouseX-(rwidth/2),mouseY-rtall-30); } else{ ellipse(mouseX,mouseY,1.5*rwidth,2); translate(mouseX-(rwidth/2),mouseY-rtall-70); } //this is the fork based on the parameters assigned earlier arc(rwidth/2,0,rwidth,rwidth,PI,2*PI); rect(0,0,rwidth,rtall); arc(rwidth/2,rtall+(rwidth/2),diameter-2,diameter*1.5,PI,2*PI); for(float i=-(diameter/3.6);i