Whenever I try to run pshape.rotateZ() I run into an exception. All steps needed to reproduce and further details can all be found on this post I made on the forum:
https://discourse.processing.org/t/bug-pmatrix3d-cannot-be-cast-to-pmatrix2d/7779
I believe this is a bug only occurring after 3.5 (3.5.1 and 3.5.2)