Packagecom.greensock.plugins
Classpublic class QuaternionsPlugin
InheritanceQuaternionsPlugin Inheritance TweenPlugin Inheritance Object

[AS3/AS2 only] Performs SLERP interpolation between 2 Quaternions. Each Quaternion should have x, y, z, and w properties. Simply pass in an Object containing properties that correspond to your object's quaternion properties. For example, if your myCamera3D has an "orientation" property that's a Quaternion and you want to tween its values to x:1, y:0.5, z:0.25, w:0.5, you could do:

TweenLite.to(myCamera3D, 2, {quaternions:{orientation:new Quaternion(1, 0.5, 0.25, 0.5)}});

You can define as many quaternion properties as you want.

USAGE:

import com.greensock.TweenLite; 
import com.greensock.plugins.TweenPlugin;
import com.greensock.plugins.QuaternionsPlugin; 
TweenPlugin.activate([QuaternionsPlugin]); //activation is permanent in the SWF, so this line only needs to be run once.
TweenLite.to(myCamera3D, 2, {quaternions:{orientation:new Quaternion(1, 0.5, 0.25, 0.5)}}); 

Copyright 2008-2013, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for Club GreenSock members, the software agreement that was issued with the membership.



Public Methods
 MethodDefined By
 Inherited
activate(plugins:Array):Boolean
[static] Activates one or more plugins so that TweenLite and TweenMax recognize the associated special properties.
TweenPlugin