Rotation over lifetime module

RotationOverLifetimeModule

2024.4.3

yisky

Hierarchy (view full)

Constructors

Properties

_enable: boolean = false
separateAxes: boolean = false

Set the rotation over lifetime on each axis separately.

RotationOverLifetimeModule

x: MinMaxCurve = ...

Rotation over lifetime curve for the x-axis.

RotationOverLifetimeModule

y: MinMaxCurve = ...

Rotation over lifetime curve for the y-axis.

RotationOverLifetimeModule

z: MinMaxCurve = ...

Rotation over lifetime curve for the z-axis.

RotationOverLifetimeModule

Accessors

  • get angularVelocity(): MinMaxCurve
  • Curve to control particle angular velocity base on lifetime.

    Returns MinMaxCurve

    RotationOverLifetimeModule

  • set angularVelocity(value): void
  • Curve to control particle angular velocity base on lifetime.

    Parameters

    • value: MinMaxCurve

    Returns void

    RotationOverLifetimeModule

  • get enable(): boolean
  • Specifies whether enable the module.

    Returns boolean

    ParticleModule

  • set enable(value): void
  • Specifies whether enable the module.

    Parameters

    • value: boolean

    Returns void

    ParticleModule

  • get xMultiplier(): number
  • Rotation multiplier around the x-axis.

    Returns number

    RotationOverLifetimeModule

  • set xMultiplier(value): void
  • Rotation multiplier around the x-axis.

    Parameters

    • value: number

    Returns void

    RotationOverLifetimeModule

  • get yMultiplier(): number
  • Rotation multiplier around the y-axis.

    Returns number

    RotationOverLifetimeModule

  • set yMultiplier(value): void
  • Rotation multiplier around the y-axis.

    Parameters

    • value: number

    Returns void

    RotationOverLifetimeModule

  • get zMultiplier(): number
  • Rotation multiplier around the z-axis.

    Returns number

    RotationOverLifetimeModule

  • set zMultiplier(value): void
  • Rotation multiplier around the z-axis.

    Parameters

    • value: number

    Returns void

    RotationOverLifetimeModule

Methods

  • Protected

    Enable callback

    Returns void

    ParticleModule

  • Protected

    Serialize

    Parameters

    • meta: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

    RotationOverLifetimeModule

  • Emit event

    Parameters

    • event: {
          type: string;
          [key: string]: any;
      }
      • [key: string]: any
      • type: string

    Returns void

    EventDispatcher

  • Deserialize

    Parameters

    • json: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

    RotationOverLifetimeModule

  • Unsubscribe a event, if the callback param is not defined, all subscribers of this type will be removed.

    Parameters

    • type: string
    • Optionalcallback: SubscriberCallbackFn

      subscriber callback

    Returns void

    EventDispatcher

  • Subscribe a event

    Parameters

    • type: string

      event type

    • callback: SubscriberCallbackFn

      callback functions

    • Optionaloptions: {
          priority?: Priority;
          target?: any;
      }

      options

      • Optionalpriority?: Priority
      • Optionaltarget?: any

    Returns void

    EventDispatcher

  • Subscribe a event, just emit once

    Parameters

    • type: string
    • callback: SubscriberCallbackFn

      subscriber callback

    • Optionaloptions: {
          priority?: Priority;
          target?: any;
      }
      • Optionalpriority?: Priority
      • Optionaltarget?: any

    Returns void

    EventDispatcher

  • Serialize

    Returns {
        [key: string]: any;
    }

    • [key: string]: any

    ParticleModule