Package | away3d.animators.states |
Class | public class SkeletonClipState |
Inheritance | SkeletonClipState AnimationClipState AnimationStateBase Object |
Implements | ISkeletonAnimationState |
Property | Defined 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 | ||
currentPose : SkeletonPose [read-only]
Returns the current skeleton pose frame of animation in the clip based on the internal playhead position. | SkeletonClipState | ||
nextFrame : uint [read-only]
Returns the next frame of animation in the clip based on the internal playhead position. | AnimationClipState | ||
nextPose : SkeletonPose [read-only]
Returns the next skeleton pose frame of animation in the clip based on the internal playhead position. | SkeletonClipState | ||
positionDelta : Vector3D [read-only]
Returns a 3d vector representing the translation delta of the animating entity for the current timestep of animation
| AnimationStateBase |
Method | Defined By | ||
---|---|---|---|
SkeletonClipState | |||
Returns the current skeleton pose of the animation in the clip based on the internal playhead position. | SkeletonClipState | ||
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 |
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. | SkeletonClipState | ||
updatePositionDelta():void [override]
Updates the node's root delta position
| SkeletonClipState | ||
updateTime(time:int):void [override]
Updates the node's internal playhead position. | SkeletonClipState |
currentPose | property |
currentPose:SkeletonPose
[read-only] Returns the current skeleton pose frame of animation in the clip based on the internal playhead position.
public function get currentPose():SkeletonPose
nextPose | property |
nextPose:SkeletonPose
[read-only] Returns the next skeleton pose frame of animation in the clip based on the internal playhead position.
public function get nextPose():SkeletonPose
SkeletonClipState | () | Constructor |
public function SkeletonClipState(animator:IAnimator, skeletonClipNode:SkeletonClipNode)
animator:IAnimator | |
skeletonClipNode:SkeletonClipNode |
getSkeletonPose | () | method |
public function getSkeletonPose(skeleton:Skeleton):SkeletonPose
Returns the current skeleton pose of the animation in the clip based on the internal playhead position.
Parameters
skeleton:Skeleton |
SkeletonPose |
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.
updatePositionDelta | () | method |
override protected function updatePositionDelta():void
Updates the node's root delta position
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.
|