Rotating PShape around background axis

edited January 2016 in Programming Questions

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



Sign In or Register to comment.