Options
Menu

Class ParticleOscillatorState

...

Hierarchy

Implements

  • IAnimationState

Index

Constructors

constructor

Properties

_pAnimationNode

_pAnimationNode: AnimationNodeBase

_pAnimator

_pAnimator: AnimatorBase

_pDynamicProperties

_pDynamicProperties: Array<Vector3D>

_pDynamicPropertiesDirty

_pDynamicPropertiesDirty: Object

_pNeedUpdateTime

_pNeedUpdateTime: boolean

_pParticleAnimator

_pParticleAnimator: ParticleAnimator

_pPositionDeltaDirty

_pPositionDeltaDirty: boolean

_pRootDelta

_pRootDelta: Vector3D

_pStartTime

_pStartTime: number

_pTime

_pTime: number

Static Private OSCILLATOR_INDEX

OSCILLATOR_INDEX: number

Accessors

needUpdateTime

  • get (): boolean

oscillator

  • get (): Vector3D
  • set (value: Vector3D): void
  • Defines the default oscillator axis (x, y, z) and cycleDuration (w) of the state, used when in global mode.

    Returns Vector3D

  • Defines the default oscillator axis (x, y, z) and cycleDuration (w) of the state, used when in global mode.

    Parameters

    • value: Vector3D

    Returns void

positionDelta

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

    Returns Vector3D

Methods

_pUpdateDynamicProperties

_pUpdatePositionDelta

  • _pUpdatePositionDelta(): void

_pUpdateTime

  • _pUpdateTime(time: number): void
  • Updates the node's internal playhead position.

    Parameters

    • time: number

      The local time (in milliseconds) of the node's playhead position.

    Returns 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
  • 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.

    Returns void

setRenderState

  • setRenderState(shader: ShaderBase, renderable: GL_RenderableBase, animationElements: AnimationElements, animationRegisterData: AnimationRegisterData, projection: ProjectionBase, stage: Stage): void
  • inheritdoc

    Parameters

    • shader: ShaderBase
    • renderable: GL_RenderableBase
    • animationElements: AnimationElements
    • animationRegisterData: AnimationRegisterData
    • projection: ProjectionBase
    • stage: Stage

    Returns void

update

  • update(time: number): void
  • Updates the configuration of the node to its current state.

    see

    AnimatorBase#update()

    Parameters

    • time: number

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

    Returns void

Generated using TypeDoc