Interpolator3D VertexInterpolator
public function VertexInterpolator(o:Object3D, f:Function, animator:Array, loop:Boolean)Create a new VertexInterpolator.
This class realise a interpolation of the vertices of the object it is apply to
o | Object3D The object3D that will be updated by the interpolator. |
f | Function The function generating the interpolation value. You can use what you want even if Sandy recommends the Ease class The function must return a number between [0,1] and must have a parameter between [0,1] too. |
animator | Array of AnimationData the array that contains all the animation data ie the vertex position per frame. |
loop | Boolean True if the interpolator can loop through its array of animations (default value) or not. |
public function getCurrentAnimationId(Void):NumberGet the ID of the current animation.
Void |
Number the ID of the current animation
public function getCurrentAnimation(Void):AnimationDataGet the current animation object.
Void |
AnimationData the currnet animation object.
public function gotoAnimation(id:Number):BooleanAllows you to go directly on a specified animation.
id | Number The animation ID you want to play. |
Boolean true if the operation succeed, false otherwise.
public function gotoNextAnimation(Void):VoidGo to the next animation.
Void |
public function getMatrix(Void):Matrix4public function getType(Void):TransformTypeReturns the type of the interpolation.
Void |
TransformType the type of the interpolation