Options
Menu

Class ParticleSegmentedColorState

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 START_MULTIPLIER_INDEX

START_MULTIPLIER_INDEX: number

Static Private START_OFFSET_INDEX

START_OFFSET_INDEX: number

Static Private TIME_DATA_INDEX

TIME_DATA_INDEX: number

Accessors

endColor

  • get (): ColorTransform
  • set (value: ColorTransform): void
  • Defines the end color transform of the state, when in global mode.

    Returns ColorTransform

  • Defines the end color transform of the state, when in global mode.

    Parameters

    • value: ColorTransform

    Returns void

needUpdateTime

  • get (): boolean

numSegmentPoint

  • get (): number
  • Defines the number of segments.

    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

segmentPoints

  • Defines the key points of color

    Returns Array<ColorSegmentPoint>

  • Defines the key points of color

    Parameters

    Returns void

startColor

  • get (): ColorTransform
  • set (value: ColorTransform): void
  • Defines the start color transform of the state, when in global mode.

    Returns ColorTransform

  • Defines the start color transform of the state, when in global mode.

    Parameters

    • value: ColorTransform

    Returns void

usesMultiplier

  • get (): boolean
  • Returns boolean

usesOffset

  • get (): boolean
  • Returns boolean

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