Packageaway3d.animators.states
Classpublic class AnimationStateBase
InheritanceAnimationStateBase Inheritance Object
Implements IAnimationState
Subclasses AnimationClipState, ParticleStateBase, SkeletonBinaryLERPState, SkeletonDifferenceState, SkeletonDirectionalState, SkeletonNaryLERPState



Public Properties
 PropertyDefined By
  positionDelta : 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
  _animationNode : AnimationNodeBase
AnimationStateBase
  _animator : IAnimator
AnimationStateBase
  _positionDeltaDirty : Boolean = true
AnimationStateBase
  _rootDelta : Vector3D
AnimationStateBase
  _startTime : int
AnimationStateBase
  _time : int
AnimationStateBase
Public Methods
 MethodDefined By
  
AnimationStateBase
  
offset(startTime:int):void
Resets the start time of the node to a new value.
AnimationStateBase
  
phase(value:Number):void
Sets the animation phase of the node.
AnimationStateBase
  
update(time:int):void
Updates the configuration of the node to its current state.
AnimationStateBase
Protected Methods
 MethodDefined By
  
Updates the node's root delta position
AnimationStateBase
  
updateTime(time:int):void
Updates the node's internal playhead position.
AnimationStateBase
Property Detail
_animationNodeproperty
protected var _animationNode:AnimationNodeBase

_animatorproperty 
protected var _animator:IAnimator

_positionDeltaDirtyproperty 
protected var _positionDeltaDirty:Boolean = true

_rootDeltaproperty 
protected var _rootDelta:Vector3D

_startTimeproperty 
protected var _startTime:int

_timeproperty 
protected var _time:int

positionDeltaproperty 
positionDelta:Vector3D  [read-only]

Returns a 3d vector representing the translation delta of the animating entity for the current timestep of animation


Implementation
    public function get positionDelta():Vector3D
Constructor Detail
AnimationStateBase()Constructor
public function AnimationStateBase(animator:IAnimator, animationNode:AnimationNodeBase)



Parameters
animator:IAnimator
 
animationNode:AnimationNodeBase
Method Detail
offset()method
public function offset(startTime:int):void

Resets the start time of the node to a new value.

Parameters

startTime:int — The absolute start time (in milliseconds) of the node's starting time.

phase()method 
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 
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.

See also

updatePositionDelta()method 
protected function updatePositionDelta():void

Updates the node's root delta position

updateTime()method 
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.