Particle

new Cesium.Particle(options)

A particle emitted by a ParticleSystem.
参数名称 类型 描述信息
options object An object with the following properties:
参数名称 类型 默认值 描述信息
mass number 1.0 可选 The mass of the particle in kilograms.
position Cartesian3 Cartesian3.ZERO 可选 The initial position of the particle in world coordinates.
velocity Cartesian3 Cartesian3.ZERO 可选 The velocity vector of the particle in world coordinates.
life number Number.MAX_VALUE 可选 The life of the particle in seconds.
image object 可选 The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.
startColor Color Color.WHITE 可选 The color of a particle when it is born.
endColor Color Color.WHITE 可选 The color of a particle when it dies.
startScale number 1.0 可选 The scale of the particle when it is born.
endScale number 1.0 可选 The scale of the particle when it dies.
imageSize Cartesian2 new Cartesian2(1.0, 1.0) 可选 The dimensions, width by height, to scale the particle image in pixels.

成员(属性)

Gets the age of the particle in seconds.
The color of the particle when it dies.
默认值: Color.WHITE
The scale of the particle when it dies.
默认值: 1.0
The image to use for the particle.
默认值: undefined
The dimensions, width by height, to scale the particle image in pixels.
默认值: new Cartesian(1.0, 1.0)
The life of the particle in seconds.
默认值: Number.MAX_VALUE
The mass of the particle in kilograms.
默认值: 1.0

normalizedAge : number

Gets the age normalized to a value in the range [0.0, 1.0].
The positon of the particle in world coordinates.
默认值: Cartesian3.ZERO
The color of the particle when it is born.
默认值: Color.WHITE
the scale of the particle when it is born.
默认值: 1.0
The velocity of the particle in world coordinates.
默认值: Cartesian3.ZERO