C# Class LostPolygon.DynamicWaterSystem.FluidVolume

Inheritance: UnityEngine.MonoBehaviour, IDynamicWaterFluidVolume
Datei anzeigen Open project: cortexarts/Feiko-Unity-OLD

Protected Properties

Property Type Description
_collider UnityEngine.BoxCollider
_transform UnityEngine.Transform

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Private Methods

Method Description
OnDrawGizmos ( ) : void
Start ( ) : void

Method Details

CreateCollider() protected method

Creates the Collider and updates its bounds.
protected CreateCollider ( ) : void
return void

CreateSplash() public method

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. ///
return void

GetWaterLevel() public method

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. ///
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 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. ///
return float

Initialize() protected method

Initializes the Collider and updates its bounds.
protected Initialize ( ) : void
return void

PropertyChanged() protected method

protected PropertyChanged ( ) : void
return void

UpdateCollider() protected method

Updates the collider bounds according to the Size and Depth.
protected UpdateCollider ( ) : void
return void

Property Details

_collider protected_oe property

protected BoxCollider,UnityEngine _collider
return UnityEngine.BoxCollider

_transform protected_oe property

protected Transform,UnityEngine _transform
return UnityEngine.Transform