I am currently taking a solidworks 2010 class and my midterm project is a rubiks cube and im having difficulty setting up mates so the rubiks cube can move properly, more than one axis. I need assistance on how to make it move like a real rubiks cube.
SolidworksAssemblies
Was that topic covered in the class?
This is a good challenge, as I can not figure a way to mate that will allow both the horizontal and vertical rotation enough to scramble it. There is a way to solve it so you could spin a "panel" of the cube Horizontally or Vertically but not both at once.
One way to do this would be to use two configurations. That way you can use mates in one to join the pieces to spin one way or the other depending on the configuration chosen. (ie. Horizontal spin & Vertical Spin)
Mate the 27 cubes in 3 sets of 9 for each panel. (horizontal for one configuration and vertical for the other) and then mate them in such a way as to spin the panel as you wish.
I am not at work, and thus can not attach a good assembly to demonstrate this, but hope it makes sense.
Not even my professor has figured it out yet, I'm pretty new at solidworks but i understand what your saying, ill try my best. I viewed a video of a rubiks cube using solidworks but the mates used were not mentioned and they had it working.
Can you post the model to experiment with?
Welcome to SW forums Michael.
Here is the solution by Albert Whatmough. You may request the SW model from Albert Whatmough
Thank you for the video, Deepak. After watching that video, I still have trouble visualizing the multi-directional movement without breaking any mates on the opposing rotational turn. A quick google search pulled up this wiki page with the option of using collision detection. I am not terribly well versed in the nuances of the collision detection tool, so am not sure if you could fine tune it to work better than these students tried.
http://wikis.swarthmore.edu/ENGR005_2008/index.php/Rubik%27s_Cube
Please, post your final product on this, especially if you find a way to get it to work. You have stumped me and a fellow CSWP co-worker on how this can be accomplished.
Here is my attempt at it. i saw the video and we figured out he just highlighted it and moved it by delta xyz. Solidworks may not be able to do it
When posting an assy you need to also ZIP and post all the parts.
Collision detection will only highlight the parts when they collide. You want physical dynamics within the move/rotate function. The move/rotate will work as long as the basic rotational relations are added. The physical limitations of the other blocks should make it act like the real deal. """should"""
The problem with the rubiks cube is that it uses physical interaction to limit the rotation.
I am having this same problem currently. I have mated all my individual cubes to the origin of the yoke thrice to lock them the correct distance and orientation to the yoke. No matter how you turn a real cube this distance and orientation never changes from an imagined center point in the yoke. Mates done. I'm having a problem when turning on physical dynamics and trying to do a motion study, either the cube just explodes or the center piece rotates all by it's lonesome, ignoring the fact that I have solid body contact set-up. I think I may just be overloading the software with the sheer amount of actual physical interactions to make a Rubik's Cube turn. They're cool little toys, but a nightmare from a physicist's view.
Any ideas?
My professor was just walking by and asked about my posting.....Michael Thorpe was his first student to attempt a Rubik's Cube. lmao