Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Particle
    • Particle

Index

Constructors

constructor

  • new Particle(options: { endColor?: Color; endScale?: number; image?: any; imageSize?: Cartesian2; life?: number; mass?: number; position?: Cartesian3; startColor?: Color; startScale?: number; velocity?: Cartesian3 }): Particle
  • Parameters

    • options: { endColor?: Color; endScale?: number; image?: any; imageSize?: Cartesian2; life?: number; mass?: number; position?: Cartesian3; startColor?: Color; startScale?: number; velocity?: Cartesian3 }
      • Optional endColor?: Color
      • Optional endScale?: number
      • Optional image?: any
      • Optional imageSize?: Cartesian2
      • Optional life?: number
      • Optional mass?: number
      • Optional position?: Cartesian3
      • Optional startColor?: Color
      • Optional startScale?: number
      • Optional velocity?: Cartesian3

    Returns Particle

Properties

age

age: number

Gets the age of the particle in seconds.

endColor

endColor: Color

The color of the particle when it dies.

endScale

endScale: number

The scale of the particle when it dies.

image

image: any

The image to use for the particle.

imageSize

imageSize: Cartesian2

The dimensions, width by height, to scale the particle image in pixels.

life

life: number

The life of the particle in seconds.

mass

mass: number

The mass of the particle in kilograms.

normalizedAge

normalizedAge: number

Gets the age normalized to a value in the range [0.0, 1.0].

position

position: Cartesian3

The positon of the particle in world coordinates.

startColor

startColor: Color

The color of the particle when it is born.

startScale

startScale: number

the scale of the particle when it is born.

velocity

velocity: Cartesian3

The velocity of the particle in world coordinates.