PShape model; PImage tex; float ry; public void setup() { size(640, 640, P3D); model = loadShape("model/rocket.obj"); translate(0, 0, 0); } public void draw() { background(0); lights(); translate(width/2, height/1.5, 0); //rocket rotateZ(PI); rotateY(ry); shape(model, 0, 0); ry += 0.02; }