Constructor
new WaterPlugin()
Methods
addWater(vertices, options)
通过顶点坐标添加Water
Parameters:
Name | Type | Description |
---|---|---|
vertices |
* | THREE.Vector2数组 |
options |
* | { id:Number/String water id speed: Number 水流速度 默认值1.0 direction: Number 水流方向 取值为1或者-1,默认是1,-1表示反方向 height:Number 水面高程 默认值是0 } |
addWater(vertices, options)
通过顶点坐标添加Water
Parameters:
Name | Type | Description |
---|---|---|
vertices |
* | THREE.Vector2数组 |
options |
* | { id:Number/String water id speed: Number 水流速度 默认值1.0 direction: Number 水流方向 取值为1或者-1,默认是1,-1表示反方向 height:Number 水面高程 默认值是0 } |
addWaterByFBX(url, options)
通过美工创建的fbx河流面模型文件,创建Water对象
Parameters:
Name | Type | Description |
---|---|---|
url |
* | fbx文件 |
options |
* | 和addWater的options参数一样 |
addWaterByFBX(url, options)
通过美工创建的fbx河流面模型文件,创建Water对象
Parameters:
Name | Type | Description |
---|---|---|
url |
* | fbx文件 |
options |
* | 和addWater的options参数一样 |
removeWater(id)
移除一个Water
Parameters:
Name | Type | Description |
---|---|---|
id |
* |
removeWater(id)
移除一个Water
Parameters:
Name | Type | Description |
---|---|---|
id |
* |