Appearance
KBE3D / KBCore / Cesium / Particle
类: Particle
A particle emitted by a ParticleSystem.
参数
An object with the following properties:
参数
The mass of the particle in kilograms.
参数
The initial position of the particle in world coordinates.
参数
The velocity vector of the particle in world coordinates.
参数
The life of the particle in seconds.
参数
The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.
参数
The color of a particle when it is born.
参数
The color of a particle when it dies.
参数
The scale of the particle when it is born.
参数
The scale of the particle when it dies.
参数
The dimensions, width by height, to scale the particle image in pixels.
属性
mass
mass:
number
The mass of the particle in kilograms.
position
position:
Cartesian3
The positon of the particle in world coordinates.
velocity
velocity:
Cartesian3
The velocity of the particle in world coordinates.
life
life:
number
The life of the particle in seconds.
image
image:
any
The image to use for the particle.
startColor
startColor:
Color
The color of the particle when it is born.
endColor
endColor:
Color
The color of the particle when it dies.
startScale
startScale:
number
the scale of the particle when it is born.
endScale
endScale:
number
The scale of the particle when it dies.
imageSize
imageSize:
Cartesian2
The dimensions, width by height, to scale the particle image in pixels.
age
age:
number
Gets the age of the particle in seconds.
normalizedAge
normalizedAge:
number
Gets the age normalized to a value in the range [0.0, 1.0].
构造函数
构造函数
new Particle(
options: {mass?:number;position?:Cartesian3;velocity?:Cartesian3;life?:number;image?:any;startColor?:Color;endColor?:Color;startScale?:number;endScale?:number;imageSize?:Cartesian2; }):Particle
参数
options
mass?
number
position?
velocity?
life?
number
image?
any
startColor?
endColor?
startScale?
number
endScale?
number
imageSize?
返回
Particle
