PShape.rotateZ() bug?

Hello,

Welcome to the Processing forum.

There is a rotateZ() bug in versions 3.5.*

It is fixed in the 4.0 alpha 1 Pre-Release.

Workaround:

    // ******** BUG ?? ******** 
    //s.rotateZ(rot);            // Bug
    s.rotate(rot, 0, 0, 1);      // Rotates about z-axis
    translate(location.x,location.y,location.z);
    shape(s);

References:
Cannot run rotateZ() within the PShape class #5770

https://discourse.processing.org/t/rotate-function-with-4-arguments/5652

http://processing.github.io/processing-javadocs/core/ has some references:
image
image

:slight_smile:

3 Likes