new FluidFoam(options){Object}
engineExtensions/simulation/fluid/FluidFoam.js, line 1
流体白浪对象
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
实例化流体白浪对象所需的参数
|
Returns:
| Type | Description |
|---|---|
| Object | 返回根据参数实例化的流体白浪对象 |
Example
// ES5引入方式
const { FluidFoam } = zondy
// ES6引入方式
import { FluidFoam } from "@mapgis/webclient-cesium-plugin"
// 创建流体白浪对象
const fluidFoam = new FluidFoam({
show: false,
density: 5,
size: 3,
intensity: 2,
color: Cesium.Color.YELLOW
})
Members
-
colorCesium.Color
-
白浪的颜色
-
densityNumber
-
白浪的密度
-
intensityNumber
-
白浪的强度
-
showBoolean
-
白浪的显隐
-
sizeNumber
-
白浪的大小