ParticleSystemEx

ParticleSystemEx

粒子效果封装,方便控制。

Constructor

new ParticleSystemEx(viewer, optionsopt)

创建粒子系统 options中支持ParticleSystem的所有参数

Parameters:
Name Type Attributes Default Description
viewer Viewer

场景对象

options Object <optional>
{}

带有以下属性的对象:

Properties
Name Type Attributes Default Description
position Array <optional>

中心点位置,点类型Cart3

show String <optional>
true

是否显示

maxHeight Boolean <optional>
5000

相机临界高度

gravity Number <optional>
0

重力因子,会修改速度矢量以改变方向或速度(基于物理的效果)

transX Number <optional>
0

X方向平移量

transY Number <optional>
0

Y方向平移量

transZ Number <optional>
0

Z方向平移量

hasDefUpdate Boolean <optional>
true

是否动态更新

Classes

ParticleSystemEx

Methods

destroy()

销毁对象释放资源