Sunday, April 3, 2011

Understanding Animatable Pivot

Really useful and informative post by Maulik about understanding and creating an animated pivot system. He guides you through the logic and maths behind creating this system.

Basically if you ever tried creating an animated pivot control, you will notice that once the object has been rotated and it's rotatePivot point has been shifted and repositioned; once the  object get translated we see some weird transformation. These unwanted transformation can be fixed by calculating the offset values in the rotatePivotTranslate matrix.

To give you a better idea on this please take a look at this little tutorial post :)

Also, Maulik has been working on this offset solution to create a real time animated pivot which you can find in his blog. Below is the link ... and a big thanks to Maulik :)

Making Animatable Pivot