Packageaway3d.animators.states
Classpublic class AnimationClipState
InheritanceAnimationClipState Inheritance AnimationStateBase Inheritance Object
Subclasses SkeletonClipState, UVClipState, VertexClipState



Public Properties
 PropertyDefined By
  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.
AnimationClipState
  currentFrame : uint
[read-only] Returns the current frame of animation in the clip based on the internal playhead position.
AnimationClipState
  nextFrame : uint
[read-only] Returns the next frame of animation in the clip based on the internal playhead position.
AnimationClipState
 InheritedpositionDelta : Vector3D
[read-only] Returns a 3d vector representing the translation delta of the animating entity for the current timestep of animation
AnimationStateBase
Protected Properties
 PropertyDefined By
 Inherited_animationNode : AnimationNodeBase
AnimationStateBase
 Inherited_animator : IAnimator
AnimationStateBase
  _blendWeight : Number
AnimationClipState
  _currentFrame : uint
AnimationClipState
  _framesDirty : Boolean = true
AnimationClipState
  _nextFrame : uint
AnimationClipState
  _oldFrame : uint
AnimationClipState
 Inherited_positionDeltaDirty : Boolean = true
AnimationStateBase
 Inherited_rootDelta : Vector3D
AnimationStateBase
 Inherited_startTime : int
AnimationStateBase
 Inherited_time : int
AnimationStateBase
  _timeDir : int
AnimationClipState
Public Methods
 MethodDefined By
  
AnimationClipState
 Inherited
offset(startTime:int):void
Resets the start time of the node to a new value.
AnimationStateBase
  
phase(value:Number):void
[override] Sets the animation phase of the node.
AnimationClipState
  
update(time:int):void
[override] Updates the configuration of the node to its current state.
AnimationClipState
Protected Methods
 MethodDefined By
  
Updates the nodes internal playhead to determine the current and next animation frame, and the blendWeight between the two.
AnimationClipState
 Inherited
Updates the node's root delta position
AnimationStateBase
  
updateTime(time:int):void
[override] Updates the node's internal playhead position.
AnimationClipState
Property Detail
_blendWeightproperty
protected var _blendWeight:Number

_currentFrameproperty 
protected var _currentFrame:uint

_framesDirtyproperty 
protected var _framesDirty:Boolean = true

_nextFrameproperty 
protected var _nextFrame:uint

_oldFrameproperty 
protected var _oldFrame:uint

_timeDirproperty 
protected var _timeDir:int

blendWeightproperty 
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.


Implementation
    public function get blendWeight():Number

See also

currentFrameproperty 
currentFrame:uint  [read-only]

Returns the current frame of animation in the clip based on the internal playhead position.


Implementation
    public function get currentFrame():uint
nextFrameproperty 
nextFrame:uint  [read-only]

Returns the next frame of animation in the clip based on the internal playhead position.


Implementation
    public function get nextFrame():uint
Constructor Detail
AnimationClipState()Constructor
public function AnimationClipState(animator:IAnimator, animationClipNode:AnimationClipNodeBase)



Parameters
animator:IAnimator
 
animationClipNode:AnimationClipNodeBase
Method Detail
phase()method
override public function phase(value:Number):void

Sets the animation phase of the node.

Parameters

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

update()method 
override public function update(time:int):void

Updates the configuration of the node to its current state.

Parameters

time:int — The absolute time (in milliseconds) of the animator's play head position.

updateFrames()method 
protected function updateFrames():void

Updates the nodes internal playhead to determine the current and next animation frame, and the blendWeight between the two.

See also

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.