So I'm trying to create a menu system that is similar to a rolodex. 1 window has the buttons X, Y, Z and a second window has corresponding panels X, Y, Z. The button window does not move, but the panels in the second window does. All attached to the same camera.
Here's what hasn't worked so far:
Using the animation system (something similar to the "Example 3 - Menu" scene) works except when the user presses the button that's already at the front then the animation repeats itself. Also animations are often getting confused with one another.
Lerping their locations from one point to another based upon who is in "front".
basically: If(Zbutton pressed && Xpanel == "front")
Lerp Xpanal to frontposition, backposition, speed
lerp Ypanel to Midposition, Midposition, speed
lerp Zpanel to Backposition, frontposition, speed...
At first I had an issue because they were flipping around their rotations. but after fixing that this just seems like an overly complicated/brute force way of doing it. As the number of panels/buttons increase the number of times of having to add this stuff increases pretty quickly. Is there a better way of doing this?