C# Класс LostPolygon.DynamicWaterSystem.WaterDetector

Наследование: UnityEngine.MonoBehaviour, IDynamicWaterFieldState
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
OnTriggerEnter ( Collider otherCollider ) : void
OnTriggerExit ( Collider otherCollider ) : void

Описание методов

GetWaterLevel() публичный Метод

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. ///
Результат float

GetWaterLevel() публичный Метод

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. ///
Результат float

GetWaterLevel() публичный Метод

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. ///
Результат float