new ov.ParticleSystemModule()
            webgl/module/particleModule/ov-Particle.js, line 16
        
        
    粒子模組(需額外載入PGWeb3DParticle.min.js)
Methods
- 
    
addExplosionEntity(parameter){Object}
webgl/module/particleModule/ov-Particle.js, line 155 - 
    
    
    
新增爆炸粒子實體。
Name Type Description parameterObject 參數。
Name Type Default Description positionGeo3DPoint 座標。
sizeNumber 5 optional 爆炸大小。
generatePeriodNumber 1 optional 爆炸生成週期(sec)。
rotatePerSecondNumber 0 optional 每秒旋轉角度。
rgbWeightArray.<Number> [1.0, 1.0, 1.0] optional RGB權重。
Returns:
Type Description Object 粒子原型及粒子產生器物件。  - 
    
addParticleEntity(parameter){ov.ParticleEntity}
webgl/module/particleModule/ov-Particle.js, line 238 - 
    
    
    
新增自訂粒子實體
Name Type Description parameterObject 參數。
Name Type Description modelParameterObject 原型參數。(若想使用的原型已建立,可只給名稱參數)
Name Type Default Description particleTextureUrlString 紋理資源網址。
nameString 原型名稱。
widthNumber 粒子紋理寬。
heightNumber 粒子紋理長。
columnNumber 1 optional 影格欄數。
rowNumber 1 optional 影格列數。
amountNumber 1 optional 影格總數。
lineStripParticleboolean false optional 是否為線段粒子。
rgbWeightArray.<Number> [1.0, 1.0, 1.0] optional RGB權重。
generatorParameterObject 產生器參數。
Name Type Default Description modelString 粒子原型名稱。
positionGeo3DPoint 產生器座標。
attitudeGeo3DPoint Geo3DPoint(0, 0, 0) optional 產生器姿態(歐拉角)。
particleVelocityGeo3DPoint Geo3DPoint(0, 0, 0) optional 粒子速度(m/s)。
particleAccelerationGeo3DPoint Geo3DPoint(0, 0, 0) optional 粒子加速度(m/s^2)。
particleMaxLifeNumber 粒子最大壽命(sec)。
generatePerSecondNumber 產生器每秒生成粒子數。
maxParticleHoldNumber 容器最大容納粒子數。
particleRotatePerSecondNumber 0 optional 粒子每秒旋轉角度。
frameShiftPerSecondNumber 0 optional 粒子每秒所需影格數。
particleScaleNumber 1 optional 粒子大小倍率。
particleDeltaScaleNumber 1 optional 粒子每秒變化大小。
particleDegreeNumber 0 optional 粒子初始化時角度。
relativeCameraGeo3DPoint optional 相對攝影機位置。
randomRegionGeo3DPoint optional 隨機範圍。
particleRelativeCameraBoolean optional 粒子相對攝影機。
randomParticleScaleArray.<Number> optional 粒子隨機變化大小。[下限, 上限]
randomParticleDegreeArray.<Number> optional 粒子初始化時隨機角度。[下限, 上限]
randomParticleDeltaScaleArray.<Number> optional 粒子隨機每秒變化大小。[下限, 上限]
randomParticleVelocityArray.<Geo3DPoint> optional 粒子隨機速度(m/s)。[下限, 上限]
randomParticleAccelerationArray.<Geo3DPoint> optional 粒子隨機加速度(m/s^2)。[下限, 上限]
randomParticleRotatePerSecondArray.<Number> optional 粒子隨機每秒旋轉角度。[下限, 上限]
scriptParameterArray.<Object> optional 腳本參數。
Name Type Default Description particleAccelerationGeo3DPoint Geo3DPoint(0, 0, 0) optional 加速度(m/s^2)。
particleAngularAccelerationNumber 0 optional 角加速度。(暫無效果)
durationTimeNumber 0 optional 持續時間。
nextPageIndexNumber 所指向的下一個腳本頁。
Returns:
Type Description ov.ParticleEntity 粒子實體物件。  - 
    
addRainEntity(parameter){Object}
webgl/module/particleModule/ov-Particle.js, line 29 - 
    
    
    
新增雨水粒子實體。
Name Type Description parameterObject 參數。
Name Type Default Description windSpeedGeoPoint new GeoPoint(0, 0) optional 風速(m/s)。
levelov.RAIN ov.RAIN.LOW optional 雨勢。
rgbWeightArray.<Number> [1.0, 1.0, 1.0] optional RGB權重。
Returns:
Type Description Object 粒子原型及粒子產生器物件。  - 
    
addSmokeEntity(parameter){Object}
webgl/module/particleModule/ov-Particle.js, line 98 - 
    
    
    
新增煙霧粒子實體。
Name Type Description parameterObject 參數。
Name Type Default Description positionGeo3DPoint 座標。
rateNumber 150 optional 生成頻率(Hz)。
sizeNumber 5 optional 煙霧大小。
lifeNumber 5 optional 煙霧壽命(sec)。
minSpeedNumber 0 optional 煙霧上飄最慢速度(m/s)。
maxSpeedNumber 1 optional 煙霧上飄最快速度(m/s)。
gravityNumber 0 optional 重力(m/s^2)。
rgbWeightArray.<Number> [1.0, 1.0, 1.0] optional RGB權重。
Returns:
Type Description Object 粒子原型及粒子產生器物件。  - 
    
removeParticleEntity(particleEntity)
webgl/module/particleModule/ov-Particle.js, line 263 - 
    
    
    
移除指定的粒子實體物件。
Name Type Description particleEntityov.ParticleEntity 粒子實體物件。