Package | away3d.animators.nodes |
Class | public class VertexClipNode |
Inheritance | VertexClipNode AnimationClipNodeBase AnimationNodeBase NamedAssetBase flash.events.EventDispatcher |
Implements | IVertexAnimationNode |
Property | Defined By | ||
---|---|---|---|
assetFullPath : Array [read-only] | NamedAssetBase | ||
assetNamespace : String [read-only] | NamedAssetBase | ||
assetType : String [read-only]
| AnimationNodeBase | ||
blendWeight : Number [read-only]
Returns a fractional value between 0 and 1 representing the blending ratio of the current playhead position
between the current frame (0) and next frame (1) of the animation. | AnimationClipNodeBase | ||
currentFrame : uint [read-only]
Returns the current frame of animation in the clip based on the internal playhead position. | AnimationClipNodeBase | ||
currentGeometry : Geometry [read-only]
Returns the current geometry frame of animation in the clip based on the internal playhead position. | VertexClipNode | ||
durations : Vector.<uint> [read-only]
Returns a vector of time values representing the duration (in milliseconds) of each animation frame in the clip. | AnimationClipNodeBase | ||
fixedFrameRate : Boolean = true | AnimationClipNodeBase | ||
frames : Vector.<Geometry> [read-only]
Returns a vector of geometry frames representing the vertex values of each animation frame in the clip. | VertexClipNode | ||
looping : Boolean
Determines whether the contents of the animation node have looping characteristics enabled. | AnimationNodeBase | ||
name : String | NamedAssetBase | ||
nextFrame : uint [read-only]
Returns the next frame of animation in the clip based on the internal playhead position. | AnimationClipNodeBase | ||
nextGeometry : Geometry [read-only]
Returns the current geometry frame of animation in the clip based on the internal playhead position. | VertexClipNode | ||
originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | ||
rootDelta : Vector3D [read-only]
Returns a 3d vector representing the translation delta of the animating entity for the current timestep of animation
| AnimationNodeBase | ||
stitchFinalFrame : Boolean
Defines if looping content blends the final frame of animation data with the first (true) or works on the
assumption that both first and last frames are identical (false). | AnimationClipNodeBase |
Method | Defined By | ||
---|---|---|---|
Creates a new VertexClipNode object. | VertexClipNode | ||
Adds a geometry object to the internal timeline of the animation node. | VertexClipNode | ||
assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | ||
dispose():void
Cleans up resources used by this asset. | AnimationNodeBase | ||
reset(time:int):void
Resets the configuration of the node to its default state. | AnimationNodeBase | ||
resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase | ||
update(time:int):void
Updates the configuration of the node to its current state. | AnimationNodeBase |
Method | Defined By | ||
---|---|---|---|
updateFrames():void [override]
Updates the nodes internal playhead to determine the current and next animation frame, and the blendWeight between the two. | VertexClipNode | ||
updateLooping():void [override]
Updates the node's looping state
| AnimationClipNodeBase | ||
updateRootDelta():void [override]
Updates the node's root delta position
| VertexClipNode | ||
updateStitch():void [override]
Updates the node's final frame stitch state. | VertexClipNode | ||
updateTime(time:int):void [override]
Updates the node's internal playhead position. | VertexClipNode |
currentGeometry | property |
currentGeometry:Geometry
[read-only] Returns the current geometry frame of animation in the clip based on the internal playhead position.
public function get currentGeometry():Geometry
frames | property |
frames:Vector.<Geometry>
[read-only] Returns a vector of geometry frames representing the vertex values of each animation frame in the clip.
public function get frames():Vector.<Geometry>
nextGeometry | property |
nextGeometry:Geometry
[read-only] Returns the current geometry frame of animation in the clip based on the internal playhead position.
public function get nextGeometry():Geometry
VertexClipNode | () | Constructor |
public function VertexClipNode()
Creates a new VertexClipNode
object.
addFrame | () | method |
public function addFrame(geometry:Geometry, duration:uint, translation:Vector3D = null):void
Adds a geometry object to the internal timeline of the animation node.
Parameters
geometry:Geometry — The geometry object to add to the timeline of the node.
| |
duration:uint — The specified duration of the frame in milliseconds.
| |
translation:Vector3D (default = null ) — The absolute translation of the frame, used in root delta calculations for mesh movement.
|
updateFrames | () | method |
override protected function updateFrames():void
Updates the nodes internal playhead to determine the current and next animation frame, and the blendWeight between the two.
updateRootDelta | () | method |
override protected function updateRootDelta():void
Updates the node's root delta position
updateStitch | () | method |
override protected function updateStitch():void
Updates the node's final frame stitch state.
updateTime | () | method |
override protected function updateTime(time:int):void
Updates the node's internal playhead position.
Parameters
time:int — The local time (in milliseconds) of the node's playhead position.
|