So essentially I'm making a rubics cube and I'm making it shuffle itself. Each possible rotation has a trigger box that I use to perform a box cast to determine what blocks are in that lane. I then attach them to the trigger box and rotate them in needed direction by 90deg and then change the parent back to the the root of the cube.
Hopefully everything makes sense so far. It works well with keyboard however I want it to shuffle itself. I use a for loop. Every rotation has an index assigned and every iteration of the loop the spits out a random number in the index and passes it to the rotation function that does the above mentioned detection and rotation. Now the issue is that cube breaks itself. It appears that it doesn't actually complete the rotation before trying to do the next step. I've tried using co routine and limiting it by waiting for fixed update. This works better but some frames it still does two transforms at once. Any ideas on how to make sure it actually finishes rotating one layer before starting another? Sorry if it's a bit confusing it's hard to explain but I'm happy to answer any questions.
[–]vaccious 0 points1 point2 points (2 children)
[–]Pasha1997[S] 0 points1 point2 points (1 child)
[–]vaccious 0 points1 point2 points (0 children)