Answers for "Combining two Quaternion Slerps on an object"
http://answers.unity.com/questions/207536/combining-two-quaternion-slerps-on-an-object.html
The latest answers for the question "Combining two Quaternion Slerps on an object"Answer by Kryptos
http://answers.unity.com/answers/207585/view.html
Quaternions can be combined with *operator, according to the documentation (http://unity3d.com/support/documentation/ScriptReference/Quaternion-operator_multiply.html).
So you can do for instance:
// Turns transform around pipe
Quaternion qPipe = Quaternion.Slerp(prevTurn, nextTurn, t);
// Turns transform as it hits curved sections
Quaternion qTurn = Quaternion.Slerp(prevTwist, nextTwist, tPos);
transform.rotation = qTurn*qPipe;
Not that qTurn*qPipe and qPipe*qTurn will create different combination. You may need to try with one or the other.Thu, 19 Jan 2012 08:59:16 GMTKryptos