C# Class LostPolygon.DynamicWaterSystem.WaterDetector

Inheritance: UnityEngine.MonoBehaviour, IDynamicWaterFieldState
ファイルを表示 Open project: caffeinatedguy/Limbs Class Usage Examples

Public Methods

Method Description
GetWaterLevel ( Vector3 position ) : float

Returns water level at the given position in simulation grid space.

GetWaterLevel ( float x, float z ) : float

Returns water level at the given position in simulation grid space.

GetWaterLevel ( float x, float y, float z ) : float

Returns water level at the given position in simulation grid space.

Private Methods

Method Description
OnTriggerEnter ( Collider otherCollider ) : void
OnTriggerExit ( Collider otherCollider ) : void

Method Details

GetWaterLevel() public method

Returns water level at the given position in simulation grid space.
public GetWaterLevel ( Vector3 position ) : float
position UnityEngine.Vector3 /// The position at which to query the water level. ///
return float

GetWaterLevel() public method

Returns water level at the given position in simulation grid space.
public GetWaterLevel ( float x, float z ) : float
x float /// The x coordinate. ///
z float /// The z coordinate. ///
return float

GetWaterLevel() public method

Returns water level at the given position in simulation grid space.
public GetWaterLevel ( float x, float y, float z ) : float
x float /// The x coordinate. ///
y float /// The y coordinate. ///
z float /// The z coordinate. ///
return float