@JsType(isNative=true, namespace="<global>", name="Object") public class ParticleSystemOptions extends Object
ParticleSystem
.Modifier and Type | Field and Description |
---|---|
ParticleBurst[] |
bursts
An array of ParticleBurst, emitting bursts of particles at periodic times.
|
Color |
color
Sets the color of a particle for the duration of its particleLife.
|
double |
emissionRate
The number of particles to emit per second.
|
ParticleEmitter |
emitter
The particle emitter for this system.
|
Matrix4 |
emitterModelMatrix
The 4x4 transformation matrix that transforms the particle system emitter within the particle systems local coordinate system.
|
Color |
endColor
The color of a particle when it dies.
|
double |
endScale
The scale of the particle when it dies.
|
Object |
image
The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.
|
Cartesian2 |
imageSize
If set, overrides the minimumImageSize and maximumImageSize inputs that scale the particle image's dimensions in pixels.
|
double |
lifetime
How long the particle system will emit particles, in seconds.
|
boolean |
loop
Whether the particle system should loop it's bursts when it is complete.
|
double |
mass
Sets the minimum and maximum mass of particles in kilograms.
|
Cartesian2 |
maximumImageSize
Sets the maximum bound, width by height, below which to randomly scale the particle image's dimensions in pixels.
|
double |
maximumMass
Sets the maximum mass of particles in kilograms.
|
double |
maximumParticleLife
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.
|
double |
maximumSpeed
Sets the maximum speed in meters per second.
|
Cartesian2 |
minimumImageSize
Sets the minimum bound, width by height, above which to randomly scale the particle image's dimensions in pixels.
|
double |
minimumMass
Sets the minimum mass of particles in kilograms.
|
double |
minimumParticleLife
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.
|
double |
minimumSpeed
Sets the minimum speed in meters per second.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms the particle system from model to world coordinates.
|
double |
particleLife
If set, overrides the minimumParticleLife and maximumParticleLife inputs with this value.
|
double |
scale
Sets the scale to apply to the image of the particle for the duration of its particleLife.
|
boolean |
show
Whether to display the particle system.
|
double |
speed
Sets the minimum and maximum speed in meters per second
|
Color |
startColor
The color of a particle when it is born.
|
double |
startScale
The scale of the particle when it is born.
|
ParticleSystem.UpdateCallback |
updateCallback
The callback function to be called each frame to update a particle.
|
Constructor and Description |
---|
ParticleSystemOptions()
Options for
ParticleSystem . |
@JsProperty public boolean show
@JsProperty public ParticleSystem.UpdateCallback updateCallback
@JsProperty public ParticleEmitter emitter
@JsProperty public Matrix4 modelMatrix
Matrix4.IDENTITY()
.@JsProperty public Matrix4 emitterModelMatrix
Matrix4.IDENTITY()
.@JsProperty public Color color
Color.WHITE()
@JsProperty public Color startColor
@JsProperty public Color endColor
@JsProperty public double scale
@JsProperty public double startScale
@JsProperty public double endScale
@JsProperty public double emissionRate
@JsProperty public ParticleBurst[] bursts
@JsProperty public boolean loop
@JsProperty public double speed
@JsProperty public double minimumSpeed
@JsProperty public double maximumSpeed
@JsProperty public double particleLife
@JsProperty public double minimumParticleLife
@JsProperty public double maximumParticleLife
@JsProperty public double mass
@JsProperty public double minimumMass
@JsProperty public double maximumMass
@JsProperty public Object image
@JsProperty public Cartesian2 imageSize
@JsProperty public Cartesian2 minimumImageSize
@JsProperty public Cartesian2 maximumImageSize
@JsProperty public double lifetime
Double.MAX_VALUE
@JsConstructor public ParticleSystemOptions()
ParticleSystem
.Copyright © 2019. All rights reserved.