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

clone():IAnimator

@inheritDoc

@:value({ offset : null, transition : null })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.

Inherited Variables

Defined by AnimatorBase

read onlyabsoluteTime:Int

read onlyactiveAnimationName:String

read onlyassetType:String

time:Int

@:value(true)updatePosition:Bool = true

Enables translation of the animated mesh from data returned per frame via the positionDelta property of the active animation node. Defaults to true.

See also:

  • away3d.animators.states.IAnimationState#positionDelta

Defined by NamedAssetBase

read onlyassetFullPath:Array<Dynamic>

read onlyassetNamespace:String

id:String

name:String

read onlyoriginalName:String

Inherited Methods

Defined by AnimatorBase

dispose():Void

@inheritDoc

phase(value:Float):Void

Sets the animation phase of the current active state's animation clip(s).

Parameters:

value

The phase value to use. 0 represents the beginning of an animation clip, 1 represents the end.

@:value({ offset : 0 })reset(name:String, offset:Int = 0):Void

start():Void

Resumes the automatic playback clock controling the active state of the animator.

stop():Void

Pauses the automatic playback clock of the animator, in case manual updates are required via the time property or update() method.

See also:

  • time

  • update()

update(time:Int):Void

Provides a way to manually update the active state of the animator when automatic updates are disabled.

See also:

  • stop()

  • autoUpdate

Defined by NamedAssetBase

assetPathEquals(name:String, ns:String):Bool

@:value({ overrideOriginal : true, ns : null })resetAssetPath(name:String, ?ns:String, overrideOriginal:Bool = true):Void