ConstructorOptions

sealed interface ConstructorOptions(source)

Properties

Link copied to clipboard

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

Link copied to clipboard
abstract var color: Color?

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

Link copied to clipboard
abstract var emissionRate: Int?

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

Link copied to clipboard
abstract var 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 var endColor: Color?

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

Link copied to clipboard
abstract var endScale: Double?

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

Link copied to clipboard
abstract var image: Any?

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

Link copied to clipboard
abstract var 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 var lifetime: Double?

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

Link copied to clipboard
abstract var loop: Boolean?

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

Link copied to clipboard
abstract var 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 var 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 var 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 var 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 var 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 var 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 var particleLife: Double?

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

Link copied to clipboard
abstract var 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 var show: Boolean?

Whether to display the particle system. Default value - true

Link copied to clipboard
abstract var 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 var speed: Double?

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

Link copied to clipboard
abstract var startColor: Color?

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

Link copied to clipboard
abstract var 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.