We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have problem about rotating PShape in 3D mode. I want to rotate a PShape object twice. First rotation is around x axis, Second rotation is around y axis.
What I mean is I want to rotate the object around the background y axis.But what the method rotate y do (in class PShape) is around the PShape object's axis. That become a problem because when I rotate the object around x, the y axis of the object is also rotating.
How can I solve the problem? Thank you
Answers
In general, I would think you'd have to do a 3d to 2d transformation matrix for the Pshape. You might some useful information here: https://processing.org/tutorials/transform2d/ and Google "3d to 2d transformations". Cheers.