Rotate a PShape

Hello,

Example:

PShape obj;

void setup()
{
  size(500, 500, P3D);
  smooth();
  background(0);
  obj = loadShape("rocket.obj");
  obj.rotateZ(TAU/2);
  obj.translate(0, 100, 0);
  obj.scale(.8, .8, .8);
}
void draw()
  {
  background(0);
  translate(width/2, height/2);
  //pushMatrix();
  
  // This: 
  //rotateY(frameCount*TAU/360);
  // Or this:
  obj.rotateY(TAU/360);
  
  shape(obj);
  //popMatrix();
  }

You can find the rocket here:

image

And here:
https://github.com/processing/processing-docs/tree/master/content/examples/Basics/Shape/LoadDisplayOBJ/data

:)