Saturday, June 24, 2017

Rubik's Cube

I have already encountered the same problem several times. How to rig a rukic cube so that gimbal lock does not happen? Recently with the help of a colleague we created an easy setup, well just for one detail.

We are going to rig the cube with simple controls, obviously pivoting correctly.


To be able to animate correctly we will take all the cube controls and we will set initial and final key. Then we will go to "Graph Editor" and we will look for inside the menu "Curves" the one that says "Change Rotation Interp" and click on the one that says "Quaternion Slerp".


We will see that our curve has become linear and here is the detail. As long as we are in "Quaternion Slerp" all the animation will be linear. But here we have two possible solutions:
  • Draw the curve manually.
  • Extract an Alembic Cache and smooth the movement.

PS: On "Quaternion Slerp" is mandatory to animate on "World"

Final Result

No comments:

Post a Comment