Packagecom.greensock.plugins
Classpublic class QuaternionsPlugin
InheritanceQuaternionsPlugin Inheritance TweenPlugin

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 2010, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership.



Public Properties
 PropertyDefined by
 InheritedchangeFactor : Number
TweenPlugin
Public Constants
 ConstantDefined by
 InheritedVERSION : Number = 1.32
[static]
TweenPlugin