Packageaway3d.animators.data
Classpublic class VertexAnimationState
InheritanceVertexAnimationState Inheritance AnimationStateBase

VertexAnimationState defines the state for a given Mesh and VertexAnimation. The state consists out of the current poses as Geometry, and their respective blend weights.

See also

away3d.core.animation.vertex.VertexAnimation
Public Properties
 PropertyDefined by
 Inheritedanimation : AnimationBase
The animation on which this AnimationStateBase object is based.
AnimationStateBase
  poses : Vector
[read-only] The blend poses that will be used to compute the final pose.
VertexAnimationState
  weights : Vector
[read-only] The blend weights per pose, must be values between 0 and 1.
VertexAnimationState
Protected Properties
 PropertyDefined by
 Inherited_animation : AnimationBase
AnimationStateBase
 Inherited_stateInvalid : Boolean
AnimationStateBase
Public Methods
 MethodDefined by
  
Creates a VertexAnimationState object.
VertexAnimationState
  
Clones the current object.
VertexAnimationState
 Inherited
Invalidates the state, so it needs to be updated next time it is requested.
AnimationStateBase
  
setRenderState(context:Context3D, contextIndex:uint, pass:MaterialPassBase, renderable:IRenderable):void
Sets the GPU render state required by the animation that is dependent of the rendered object.
VertexAnimationState
Property detail
_posesproperty
arcane var _poses:Vector
posesproperty 
poses:Vector  [read-only]

The blend poses that will be used to compute the final pose.

Implementation
    public function get poses():Vector
weightsproperty 
weights:Vector  [read-only]

The blend weights per pose, must be values between 0 and 1.

Implementation
    public function get weights():Vector
Constructor detail
VertexAnimationState()constructor
public function VertexAnimationState(animation:VertexAnimation)Parameters
animation:VertexAnimation — The animation object the state refers to.
Init Parameters
Method detail
clone()method
public override function clone():AnimationStateBase

Clones the current object.

Returns
AnimationStateBase — An exact duplicate of the current object.
setRenderState()method 
public override function setRenderState(context:Context3D, contextIndex:uint, pass:MaterialPassBase, renderable:IRenderable):void

Sets the GPU render state required by the animation that is dependent of the rendered object.

Parameters
context:Context3D — The context which is currently performing the rendering.
 
contextIndex:uint — The material pass which is currently used to render the geometry.
 
pass:MaterialPassBase — The object currently being rendered.
 
renderable:IRenderable
Wiki link
Click to go to the wiki page for 'away3d.animators.data.VertexAnimationState'

Code examples

Comments