Re: Rubik's Cube Help!
Posted by
David A. Smith on
Apr 21, 2013; 1:02pm
URL: https://forum.world.st/Rubik-s-Cube-Help-tp4682659p4682826.html
Step 1 is basically right. Once you formulate the actual equation, you can combine it all into a single matrix if you do it a lot. Easier to do the following:
Step 2 - create a TFrame at the center of where you want to rotate around. You can place this TFrame anywhere you like in the world. Add the elements of the cube into the TFrame.
Step 3 - more difficult if you want to have each cube move somewhat independently the way a Rubik's cube does. I wrote a method that computes the transform matrix from one object to another. This allows you to perform a rotation around the other object or TFrame. I don't remember the actual method name though.
David