void fibTweenComplete(string textToDisplay)
{
Quaternion q0, q1;
goMyPivot.transform.rotation = Quaternion.LerpUnclamped(qStart, qEnd, 1.0f);
if (--m_numPoints > 0)
{
q0 = Quaternion.LookRotation(AMD_Base.funcVerts[m_toLoc].vPos.normalized);
m_toLoc += m_deltLoc;
q1 = Quaternion.LookRotation(AMD_Base.funcVerts[m_toLoc].vPos.normalized);
qEnd = q1 * Quaternion.Inverse(q0) * goMyPivot.transform.rotation;
qStart = goMyPivot.transform.rotation;
goTweenFollower.transform.position = Vector3.zero;
iTween.MoveTo(goTweenFollower, iTween.Hash("x", 1, "time", m_pathTime, "easetype", "easeInOutBack", "onstart", "fibTweenStarted", "onstartparams", "FIB Rider Started...", "onupdate", "fibTweenUpdate", "onupdateparams", m_toLoc.ToString(), "oncomplete", "fibTweenComplete", "oncompleteparams", "fib Tween DONE", "onCompleteTarget", gameObject, "onStartTarget", gameObject, "onUpdateTarget", gameObject));
}
}
Scripting and cross fades:
- iTween
- Phasor Projection
- Sequencing

