| Package | away3d.animators.states |
| Class | public class AnimationStateBase |
| Inheritance | AnimationStateBase Object |
| Implements | IAnimationState |
| Subclasses | AnimationClipState, ParticleStateBase, SkeletonBinaryLERPState, SkeletonDifferenceState, SkeletonDirectionalState, SkeletonNaryLERPState |
| Property | Defined By | ||
|---|---|---|---|
| positionDelta : Vector3D [read-only]
Returns a 3d vector representing the translation delta of the animating entity for the current timestep of animation
| AnimationStateBase | ||
| Property | Defined By | ||
|---|---|---|---|
| _animationNode : AnimationNodeBase | AnimationStateBase | ||
| _animator : IAnimator | AnimationStateBase | ||
| _positionDeltaDirty : Boolean = true | AnimationStateBase | ||
| _rootDelta : Vector3D | AnimationStateBase | ||
| _startTime : int | AnimationStateBase | ||
| _time : int | AnimationStateBase | ||
| Method | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
updatePositionDelta():void
Updates the node's root delta position
| AnimationStateBase | ||
updateTime(time:int):void
Updates the node's internal playhead position. | AnimationStateBase | ||
| _animationNode | property |
protected var _animationNode:AnimationNodeBase| _animator | property |
protected var _animator:IAnimator| _positionDeltaDirty | property |
protected var _positionDeltaDirty:Boolean = true| _rootDelta | property |
protected var _rootDelta:Vector3D| _startTime | property |
protected var _startTime:int| _time | property |
protected var _time:int| positionDelta | property |
positionDelta:Vector3D [read-only] Returns a 3d vector representing the translation delta of the animating entity for the current timestep of animation
public function get positionDelta():Vector3D| AnimationStateBase | () | Constructor |
public function AnimationStateBase(animator:IAnimator, animationNode:AnimationNodeBase)animator:IAnimator | |
animationNode:AnimationNodeBase |
| offset | () | method |
public function offset(startTime:int):voidResets 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):voidSets 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):voidUpdates 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():voidUpdates the node's root delta position
| updateTime | () | method |
protected function updateTime(time:int):voidUpdates the node's internal playhead position.
Parameters
time:int — The local time (in milliseconds) of the node's playhead position.
|