new Cesium.Particle(options)

由 {NT} 发射的粒子 .
Name Type Description
options object 具有下列属性的天体:
Name Type Default Description
mass number 1.0 optional The mass of the particle in kilograms.
position Cartesian3 Cartesian3.ZERO optional The initial position of the particle in world coordinates.
velocity Cartesian3 Cartesian3.ZERO optional The velocity vector of the particle in world coordinates.
life number Number.MAX_VALUE optional The life of the particle in seconds.
image object optional 用于公告牌的 NT 0 ,HTML ImageElement,或HTML CanvasElement.
startColor Color Color.WHITE optional The color of a particle when it is born.
endColor Color Color.WHITE optional The color of a particle when it dies.
startScale number 1.0 optional 粒子诞生时的尺度.
endScale number 1.0 optional 粒子死亡时的尺度.
imageSize Cartesian2 new Cartesian2(1.0, 1.0) optional The dimensions, width by height, to scale the particle image in pixels.

Members

age : number

以秒计获得粒子的年龄.

endColor : Color

粒子死亡时的颜色.
Default Value: Color.WHITE

endScale : number

粒子死亡时的尺度.
Default Value: 1.0

image : object

用于粒子的图像 .
Default Value: undefined

imageSize : Cartesian2

尺寸,宽度按高度,以像素表示粒子图像的大小.
Default Value: new Cartesian(1.0, 1.0)

life : number

粒子的寿命以秒计.
Default Value: -NT=0=- 翻译:

mass : number

以公斤计的粒子质量.
Default Value: 1.0

normalizedAge : number

使年龄正常化为在范围[0.0,1.0]中的值.

position : Cartesian3

粒子在世界坐标上的正弦.
Default Value: Cartesian3.ZERO

startColor : Color

粒子诞生时的颜色.
Default Value: Color.WHITE

startScale : number

粒子诞生时的尺度.
Default Value: 1.0

velocity : Cartesian3

世界坐标中的粒子速度.
Default Value: Cartesian3.ZERO
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.