Login  Register

Re: Rubik's Cube Help!

Posted by David A. Smith on Apr 21, 2013; 4:50pm
URL: https://forum.world.st/Rubik-s-Cube-Help-tp4682659p4682870.html

Probably not. Rubik's cubes are necessarily complex in their transformations. I think you really just want to treat each sub-cube as an independent entity when you do its transform. The nice thing is that all the cubes in that plane should undergo the same transform (newMatrix = transform*oldMatrix or something like that for all 9 cubes in that plane...)
David


On Sun, Apr 21, 2013 at 12:46 PM, sachuraju <[hidden email]> wrote:
Thank you for the reply, David. I'll go ahead and try it. I would also
appreciate your inputs on the following.

It seems to me that we may be thinking at a lower level of abstraction than
we ought to.

The rotation around a point is not necessarily a property of a single cube,
but all the cubes in the plane in which I want the rotations to happen. So,

1) Would it be easier to define a container class, (such as a subclass of
TGroup), that can contain cubes and have rotation as a property of the
container class itself? This way, we don't have to worry about single-cube
rotations.

2) If we do implement such a container class, we'll need to make such a
container class dynamic since after a rotation, the cubes shift their
positions. So if I do a rotation around y-axis, then the cubes would change
their planes in the x-axis and z-axis.

Would it be any easier, given the classes in croquet, than my previous
approach?



--
View this message in context: http://forum.world.st/Rubik-s-Cube-Help-tp4682659p4682869.html
Sent from the Croquet - Dev mailing list archive at Nabble.com.



--
David A. Smith
Picture