Options
Menu

Class AnimationClipState

Hierarchy

Implements

  • IAnimationState

Index

Constructors

constructor

Properties

_pAnimationNode

_pAnimationNode: AnimationNodeBase

_pAnimator

_pAnimator: AnimatorBase

_pBlendWeight

_pBlendWeight: number

_pCurrentFrame

_pCurrentFrame: number

_pFramesDirty

_pFramesDirty: boolean

_pNextFrame

_pNextFrame: number

_pOldFrame

_pOldFrame: number

_pPositionDeltaDirty

_pPositionDeltaDirty: boolean

_pRootDelta

_pRootDelta: Vector3D

_pStartTime

_pStartTime: number

_pTime

_pTime: number

_pTimeDir

_pTimeDir: number

Accessors

blendWeight

  • get (): number
  • 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.

    see

    #currentFrame

    see

    #nextFrame

    Returns number

currentFrame

  • get (): number
  • Returns the current frame of animation in the clip based on the internal playhead position.

    Returns number

nextFrame

  • get (): number
  • Returns the next frame of animation in the clip based on the internal playhead position.

    Returns number

positionDelta

  • get (): Vector3D
  • Returns a 3d vector representing the translation delta of the animating entity for the current timestep of animation

    Returns Vector3D

Methods

_pUpdateFrames

  • _pUpdateFrames(): void
  • Updates the nodes internal playhead to determine the current and next animation frame, and the blendWeight between the two.

    see

    #currentFrame

    see

    #nextFrame

    see

    #blendWeight

    Returns void

_pUpdatePositionDelta

  • _pUpdatePositionDelta(): void

_pUpdateTime

  • _pUpdateTime(time: number): void

offset

  • offset(startTime: number): void
  • Resets the start time of the node to a new value.

    Parameters

    • startTime: number

      The absolute start time (in milliseconds) of the node's starting time.

    Returns void

phase

  • phase(value: number): void
  • inheritdoc

    Parameters

    • value: number

    Returns void

update

  • update(time: number): void
  • inheritdoc

    Parameters

    • time: number

    Returns void

Generated using TypeDoc