ConstructorOptions

Properties

Link copied to clipboard
abstract val bursts: <Error class: unknown class><ParticleBurst>?

An array of ParticleBurst, emitting bursts of particles at periodic times.

Link copied to clipboard
abstract val color: Color?

Sets the color of a particle for the duration of its particleLife. Default value - Color.WHITE

Link copied to clipboard
abstract val emissionRate: Int?

The number of particles to emit per second. Default value - 5

Link copied to clipboard
abstract val emitter: ParticleEmitter?

The particle emitter for this system. Default value - CircleEmitter(0.5)

Link copied to clipboard

The 4x4 transformation matrix that transforms the particle system emitter within the particle systems local coordinate system. Default value - Matrix4.IDENTITY

Link copied to clipboard
abstract val endColor: Color?

The color of the particle at the end of its life.

Link copied to clipboard
abstract val endScale: Double?

The final scale to apply to the image of the particle at the end of its life.

Link copied to clipboard
abstract val image: Any?

The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.

Link copied to clipboard
abstract val imageSize: Cartesian2?

If set, overrides the minimumImageSize and maximumImageSize inputs that scale the particle image's dimensions in pixels. Default value - Cartesian2(1.0, 1.0)

Link copied to clipboard
abstract val lifetime: Double?

How long the particle system will emit particles, in seconds. Default value - Number.MAX_VALUE

Link copied to clipboard
abstract val loop: Boolean?

Whether the particle system should loop its bursts when it is complete. Default value - true

Link copied to clipboard
abstract val mass: Double?

Sets the minimum and maximum mass of particles in kilograms. Default value - 1.0

Link copied to clipboard

Sets the maximum bound, width by height, below which to randomly scale the particle image's dimensions in pixels.

Link copied to clipboard
abstract val maximumMass: Double?

Sets the maximum mass of particles in kilograms. A particle's actual mass will be chosen as a random amount below this value.

Link copied to clipboard

Sets the maximum bound in seconds for the possible duration of a particle's life below which a particle's actual life will be randomly chosen.

Link copied to clipboard
abstract val maximumSpeed: Double?

Sets the maximum bound in meters per second below which a particle's actual speed will be randomly chosen.

Link copied to clipboard

Sets the minimum bound, width by height, above which to randomly scale the particle image's dimensions in pixels.

Link copied to clipboard
abstract val minimumMass: Double?

Sets the minimum bound for the mass of a particle in kilograms. A particle's actual mass will be chosen as a random amount above this value.

Link copied to clipboard

Sets the minimum bound in seconds for the possible duration of a particle's life above which a particle's actual life will be randomly chosen.

Link copied to clipboard
abstract val minimumSpeed: Double?

Sets the minimum bound in meters per second above which a particle's actual speed will be randomly chosen.

Link copied to clipboard
abstract val modelMatrix: Matrix4?

The 4x4 transformation matrix that transforms the particle system from model to world coordinates. Default value - Matrix4.IDENTITY

Link copied to clipboard
abstract val particleLife: Double?

If set, overrides the minimumParticleLife and maximumParticleLife inputs with this value. Default value - 5.0

Link copied to clipboard
abstract val scale: Double?

Sets the scale to apply to the image of the particle for the duration of its particleLife. Default value - 1.0

Link copied to clipboard
abstract val show: Boolean?

Whether to display the particle system. Default value - true

Link copied to clipboard
abstract val sizeInMeters: Boolean?

Sets if the size of particles is in meters or pixels. true to size the particles in meters; otherwise, the size is in pixels.

Link copied to clipboard
abstract val speed: Double?

If set, overrides the minimumSpeed and maximumSpeed inputs with this value. Default value - 1.0

Link copied to clipboard
abstract val startColor: Color?

The color of the particle at the beginning of its life.

Link copied to clipboard
abstract val startScale: Double?

The initial scale to apply to the image of the particle at the beginning of its life.

Link copied to clipboard

The callback function to be called each frame to update a particle.