class VertexAnimator
package away3d.animators
extends AnimatorBase › NamedAssetBase
implements IAnimator
Available on all platforms
Provides an interface for assigning vertex-based animation data sets to mesh-based entity objects and controlling the various available states of animation through an interative playhead that can be automatically updated or manually triggered.
Constructor
new(vertexAnimationSet:VertexAnimationSet)
Creates a new VertexAnimator object.
Parameters:
vertexAnimationSet | The animation data set containing the vertex animations used by the animator. |
|---|
Methods
play(name:String, ?transition:IAnimationTransition, ?offset:Int):Void
Plays a sequence with a given name. If the sequence is not found, it may not be loaded yet, and it will retry every frame.
Parameters:
sequenceName | The name of the clip to be played. |
|---|
setRenderState(stage3DProxy:Stage3DProxy, renderable:IRenderable, vertexConstantOffset:Int, vertexStreamOffset:Int, camera:Camera3D):Void
@inheritDoc
testGPUCompatibility(pass:MaterialPassBase):Void
Verifies if the animation will be used on cpu. Needs to be true for all passes for a material to be able to use it on gpu. Needs to be called if gpu code is potentially required.