I am trying to perform consecutive rotations on a cylinder but once I do the first rotation my coordinate space changes and it messes everything up for consecutive rotations. I would like to keep rotating the object with reference to world space. I find it frustrating that if I use Transform3D that I can do a rotZ OR a rotY for instance, but they are not cumulative which is what I would like to accomplish.
Basically I have to take a cylinder and orientate it properly with the correct rotation so I need to perform rotations for roll pitch and yaw to get it correct.
I am using the following code to fgure this out. As you can see, if I want to rotate the cylinder along the x axis, and then turn it on its side by rotating (world coord) on the Y axis it doesn’t work because it rotates on its own axis.