Particle

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
sealed interface ConstructorOptions

Properties

Link copied to clipboard
var age: Double

Gets the age of the particle in seconds.

Link copied to clipboard

The color of the particle when it dies.

Link copied to clipboard

The scale of the particle when it dies.

Link copied to clipboard
var image: Any

The image to use for the particle.

Link copied to clipboard

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

Link copied to clipboard

The life of the particle in seconds.

Link copied to clipboard

The mass of the particle in kilograms.

Link copied to clipboard

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

Link copied to clipboard

The positon of the particle in world coordinates.

Link copied to clipboard

The color of the particle when it is born.

Link copied to clipboard

the scale of the particle when it is born.

Link copied to clipboard

The velocity of the particle in world coordinates.