Let’s say I have a cuboid here. When I rotate it around x-axis for 90 degrees, it stands up.
I want that when I input 90 degrees in the z-axis field, it will make the cuboid stand up too, instead of lying down like this.
I’ve tried to create an empty GameObject and make it the parent of the cuboid, then rotate the GameObject’s x-axis and y-axis by 90 degrees. This made the cuboid stands up when I am rotating the cuboid’s z-axis by 90 degrees, but it doesn’t work for other degrees like 45 degrees. I want the cuboid to rotate around z-axis as if I am rotating around x-axis for all angles. Thanks in advance.

