Appearance
modelExplode ?
ModelExplode ?
Kind: global class
new ModelExplode(viewer, model) ?
模型爆炸動畫類
| Param | Type | Description |
|---|---|---|
| viewer | Viewer | 場景類 |
| model | Group | 需要爆炸動畫的模型 |
modelExplode.explodeCenter(scalar, time, isExplode, callback) ?
模型中心炸開
Kind: instance method of ModelExplode
| Param | Type | Default | Description |
|---|---|---|---|
| scalar | number | 爆炸系數(shù) | |
| time | number | 動畫時(shí)間(s) | |
| isExplode | boolean | true | 爆炸與否(否=>恢復(fù)模型本身位置) |
| callback | function | 動畫完成的回調(diào)函數(shù) |