Constructor
new Glodon.Bimface.Plugins.ParticleSystem.FireEffect(fireEffectConfig)
Parameters:
Name | Type | Description |
---|---|---|
fireEffectConfig | Glodon.Bimface.Plugins.ParticleSystem.FireEffectConfig | 火焰效果的配置项 |
Methods
destroy()
销毁火焰效果对象
getPosition()
获取火焰的初始点坐标
Returns:
Type | Description |
---|---|
Object |
火焰的初始点坐标 |
getScale()
获取火焰粒子比例
Returns:
Type | Description |
---|---|
Number |
火焰缩小放大比例 |
getSmokeConcentration()
获取烟雾浓度
Returns:
Type | Description |
---|---|
Number |
烟雾浓度,取值为[0,1] |
getType()
获取火焰效果类型
Returns:
Type | Description |
---|---|
Glodon.Bimface.Plugins.ParticleSystem.FireType |
火焰效果选项,支持"smoke"与"fire"两类,默认为"fire" |
setPosition(position)
设置火焰的初始点坐标
Parameters:
Name | Type | Description |
---|---|---|
position | Object | 火焰的初始点坐标 |
setScale(scale)
设置火焰粒子比例
Parameters:
Name | Type | Description |
---|---|---|
scale | Number | 火焰缩小放大比例,默认值为1 |
setSmokeConcentration(concentration)
设置烟雾浓度
Parameters:
Name | Type | Description |
---|---|---|
concentration | Number | 烟雾浓度,取值范围[0,1],默认值为0.6 |
setType(fireType)
设置火焰效果类型
Parameters:
Name | Type | Description |
---|---|---|
fireType | Glodon.Bimface.Plugins.ParticleSystem.FireType | 火焰效果选项,支持"smoke"与"fire"两类,默认为"fire" |
update()
更新参数配置