Packageflare.modifiers
Classpublic class VertexAnimationModifier
InheritanceVertexAnimationModifier Inheritance Modifier Inheritance Object

Creates a new animated vertex modifier.



Public Properties
 PropertyDefined By
  frames : Vector.<Vector.<Number>>
Contains vertex frames.
VertexAnimationModifier
  frameSkip : int = 1
Frames between each frame in frames property.
VertexAnimationModifier
  index : Vector.<uint>
Stores the vertex indices.
VertexAnimationModifier
  morphEnabled : Boolean = false
Sets or returns if morph animations is enabled.
VertexAnimationModifier
  morphToFrame : int
Sets or returns the morph destination frame.
VertexAnimationModifier
  morphValue : Number = 0
Sets or returns the interpolation value of the morph (0 to 1).
VertexAnimationModifier
  normals : Vector.<Vector.<Number>>
This property stores polygon vertex normals for each frame.
VertexAnimationModifier
  updateAllInstances : Boolean = false
Force to update all instances every frame.
VertexAnimationModifier
Public Methods
 MethodDefined By
  
VertexAnimationModifier
 Inherited
Modifier
 Inherited
draw(mesh:Mesh3D):void
Modifier
Property Detail
framesproperty
public var frames:Vector.<Vector.<Number>>

Contains vertex frames. Each frame contains a Vector of numbers with x, y, z values for all vertices.

frameSkipproperty 
public var frameSkip:int = 1

Frames between each frame in frames property.

See also

indexproperty 
public var index:Vector.<uint>

Stores the vertex indices.

morphEnabledproperty 
public var morphEnabled:Boolean = false

Sets or returns if morph animations is enabled. If is set to 'true', the Pivot3D.currentFrame property is ignored.

morphEnabled is automatically sets to 'true' when morphToFrame property is seted.

See also

morphToFrameproperty 
morphToFrame:int

Sets or returns the morph destination frame.

When this property is seted, the morphEnabled property its automatically set to 'true' and morphValue sets to 0.


Implementation
    public function get morphToFrame():int
    public function set morphToFrame(value:int):void

See also

morphValueproperty 
public var morphValue:Number = 0

Sets or returns the interpolation value of the morph (0 to 1).

normalsproperty 
public var normals:Vector.<Vector.<Number>>

This property stores polygon vertex normals for each frame.

Each polygon has three vertex normals.

Each Frame contains a Vector of numbers with x, y, z, values for each three normals, for all polygons.

If normals property is null, no normals are calculated.

updateAllInstancesproperty 
public var updateAllInstances:Boolean = false

Force to update all instances every frame. This is more expensive, but since all cloned instances share the same vertex buffers, when one of them is modified, all instances are affected too. This property updates the state of the vertex buffer before render.

Constructor Detail
VertexAnimationModifier()Constructor
public function VertexAnimationModifier()