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

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

Защищенные свойства (Protected)

Свойство Тип Описание
_collider UnityEngine.BoxCollider
_transform UnityEngine.Transform

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

Метод Описание
CreateSplash ( Vector3 center, float radius, float force ) : void

Creates a circular drop splash on the fluid surface (if available).

GetWaterLevel ( Vector3 position ) : float

Returns water level at the given position in world 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 world space.

Защищенные методы

Метод Описание
CreateCollider ( ) : void

Creates the Collider and updates its bounds.

Initialize ( ) : void

Initializes the Collider and updates its bounds.

PropertyChanged ( ) : void
UpdateCollider ( ) : void

Updates the collider bounds according to the Size and Depth.

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

Метод Описание
OnDrawGizmos ( ) : void
Start ( ) : void

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

CreateCollider() защищенный Метод

Creates the Collider and updates its bounds.
protected CreateCollider ( ) : void
Результат void

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

Creates a circular drop splash on the fluid surface (if available).
public CreateSplash ( Vector3 center, float radius, float force ) : void
center UnityEngine.Vector3 /// The center of the splash in local space. ///
radius float /// The radius of the splash. ///
force float /// The amount of force applied to create the splash. ///
Результат void

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

Returns water level at the given position in world 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 world 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

Initialize() защищенный Метод

Initializes the Collider and updates its bounds.
protected Initialize ( ) : void
Результат void

PropertyChanged() защищенный Метод

protected PropertyChanged ( ) : void
Результат void

UpdateCollider() защищенный Метод

Updates the collider bounds according to the Size and Depth.
protected UpdateCollider ( ) : void
Результат void

Описание свойств

_collider защищенное свойство

protected BoxCollider,UnityEngine _collider
Результат UnityEngine.BoxCollider

_transform защищенное свойство

protected Transform,UnityEngine _transform
Результат UnityEngine.Transform