C# Class LostPolygon.DynamicWaterSystem.FluidVolume

Inheritance: UnityEngine.MonoBehaviour, IDynamicWaterFluidVolume
Afficher le fichier Open project: cortexarts/Feiko-Unity-OLD

Protected Properties

Свойство Type Description
_collider UnityEngine.BoxCollider
_transform UnityEngine.Transform

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
OnDrawGizmos ( ) : void
Start ( ) : void

Method Details

CreateCollider() protected méthode

Creates the Collider and updates its bounds.
protected CreateCollider ( ) : void
Résultat void

CreateSplash() public méthode

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. ///
Résultat void

GetWaterLevel() public méthode

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. ///
Résultat float

GetWaterLevel() public méthode

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. ///
Résultat float

GetWaterLevel() public méthode

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. ///
Résultat float

Initialize() protected méthode

Initializes the Collider and updates its bounds.
protected Initialize ( ) : void
Résultat void

PropertyChanged() protected méthode

protected PropertyChanged ( ) : void
Résultat void

UpdateCollider() protected méthode

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

Property Details

_collider protected_oe property

protected BoxCollider,UnityEngine _collider
Résultat UnityEngine.BoxCollider

_transform protected_oe property

protected Transform,UnityEngine _transform
Résultat UnityEngine.Transform