Package | flare.modifiers |
Class | public class VertexAnimationModifier |
Inheritance | VertexAnimationModifier ![]() ![]() |
Property | Defined 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 |
frames | property |
public var frames:Vector.<Vector.<Number>>
Contains vertex frames. Each frame contains a Vector of numbers with x, y, z values for all vertices.
frameSkip | property |
index | property |
public var index:Vector.<uint>
Stores the vertex indices.
morphEnabled | property |
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
morphToFrame | property |
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.
public function get morphToFrame():int
public function set morphToFrame(value:int):void
See also
morphValue | property |
public var morphValue:Number = 0
Sets or returns the interpolation value of the morph (0 to 1).
normals | property |
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.
updateAllInstances | property |
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.
VertexAnimationModifier | () | Constructor |
public function VertexAnimationModifier()