Class FlatWaterDataProvider
Simple water data provider for flat, static water surfaces. Uses a constant water height based on the transform's Y position. Does not support water height queries, waves, normals, or flow.
Inherited Members
Namespace: NWH.DWP2.WaterData
Assembly: NWH.DWP2.dll
Syntax
public class FlatWaterDataProvider : WaterDataProvider
Methods
| Edit this page View SourceGetWaterHeights(WaterObject, ref Vector3[], ref float[])
Returns water height at each given point. Override this method to provide water height data from your water system.
Declaration
public override void GetWaterHeights(WaterObject waterObject, ref Vector3[] points, ref float[] waterHeights)
Parameters
| Type | Name | Description |
|---|---|---|
| WaterObject | waterObject | WaterObject requesting the data. |
| Vector3[] | points | Position array in world coordinates. |
| float[] | waterHeights | Water height array in world coordinates. Corresponds to positions. |
Overrides
| Edit this page View SourceSupportsWaterFlowQueries()
Does this water system support water velocity queries?
Declaration
public override bool SupportsWaterFlowQueries()
Returns
| Type | Description |
|---|---|
| bool | True if it does, false if it does not. |
Overrides
| Edit this page View SourceSupportsWaterHeightQueries()
Does this water system support water height queries?
Declaration
public override bool SupportsWaterHeightQueries()
Returns
| Type | Description |
|---|---|
| bool | True if it does, false if it does not. |
Overrides
| Edit this page View SourceSupportsWaterNormalQueries()
Does this water system support water normal queries?
Declaration
public override bool SupportsWaterNormalQueries()
Returns
| Type | Description |
|---|---|
| bool | True if it does, false if it does not. |