Hi guys, I'm currently attempting to create a game similar to that of a Rubik's Cube but I've come to a standstill.
I have a Cube made up of 8 smaller cubes, so its 2x2x2. Problem is, I have no idea how to go about rotating each of these cubes. I want it so when the user uses the left or right arrow, the cubes on that side of the big Cube would rotate clockwise/anti-clockwise by 90 degrees. I was reading that Quartenions would be good to use, as I already have the positions of the smaller cubes, and all I'd have to do is rotate it around the last position of that specific cube.
Problem is, I have no idea how to implement this! Most of the articles/tutorials I have read only deal with Quarternion Cameras, and not the rotation of an object around an axis.
Any help/advice/pointers would be greatly appreciated.