Particle

open external class Particle(options: Particle.ConstructorOptions)(source)

A particle emitted by a ParticleSystem.

See also

Constructors

Link copied to clipboard
constructor(options: Particle.ConstructorOptions)

Types

Link copied to clipboard
external interface ConstructorOptions

Properties

Link copied to clipboard
external var age: Double

Gets the age of the particle in seconds.

Link copied to clipboard
external var endColor: Color

The color of the particle when it dies.

Link copied to clipboard
external var endScale: Double

The scale of the particle when it dies.

Link copied to clipboard
external var image: JsAny

The image to use for the particle.

Link copied to clipboard
external var imageSize: Cartesian2

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

Link copied to clipboard
external var life: Double

The life of the particle in seconds.

Link copied to clipboard
external var mass: Double

The mass of the particle in kilograms.

Link copied to clipboard
external var normalizedAge: Double

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

Link copied to clipboard
external var position: Cartesian3

The positon of the particle in world coordinates.

Link copied to clipboard
external var startColor: Color

The color of the particle when it is born.

Link copied to clipboard
external var startScale: Double

the scale of the particle when it is born.

Link copied to clipboard
external var velocity: Cartesian3

The velocity of the particle in world coordinates.