Is it possible to rotate a gameobject along two or more axis using animation editor?
Hello Let me try to explain what I want to do with animation editor. Basically I have a box that is expected to make two rotation along two different axis in two different time intervals. I put some images to make things more clear:
In (a) the box should rotate along one of the bottom edges (in red) obtaining the position in (b). Than in (b) the box should rotate along the vertical axis (also in red) until it reasches the final position in (c).
Ok, I know that I can simply parent the box to an empty gameobject placed on the axis. But as you can see in this way is quite a mess to make an animation where the object is supposed to rotate along many axis. What is the best way to obtain this result? Should I make two different gameobjects (one parented with a gameobject placed on the axis in (a) and the other one placed on the axis in (b))? Is there a way to make a sort of "pivot-indipendent" animation?
Thank you so much for the answer