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:, 2, {quaternions:{orientation:new Quaternion(1, 0.5, 0.25, 0.5)}});

You can define as many quaternion properties as you want.


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., 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 or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership.

Public Properties
 PropertyDefined by
 InheritedchangeFactor : Number
Public Constants
 ConstantDefined by
 InheritedVERSION : Number = 1.32