Свойство | Type | Description | |
---|---|---|---|
UpdateWhenNotVisible | bool | ||
UsePlaneCollider | bool |
Méthode | Description | |
---|---|---|
CreateSplash ( Vector3 start, Vector3 end, float radius, float force ) : void |
Creates a circular drop splashes on the fluid surface across the line.
|
|
CreateSplash ( Vector3 center, float radius, float force ) : void |
Creates a circular drop splash on the fluid surface (if available).
|
|
ErodeObstructionField ( int iterations, byte field ) : byte[] | ||
GetObstructionInfoArray ( |
Gets the info required for obstruction mask generation for an array of GameObject.
|
|
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 world space.
|
|
GetWaterLevel ( float x, float y, float z ) : float |
Returns water level at the given position in world space.
|
|
MaxResolution ( ) : int |
Returns maximum resolution (along largest side) possible for this water plane dimensions.
|
|
MaxSpeed ( ) : float |
Returns maximum wave propagation speed possible for this quality level.
|
|
RecalculateObstructions ( ) : void |
Recalculate the static obstructions.
|
Méthode | Description | |
---|---|---|
CreatePlaneCollider ( ) : void |
Create the child gameObject for interacting with water plane.
|
|
GetGameObjectsWithTagInBounds ( string searchTag, |
Returns GameObjects with tag within Bounds .
|
|
Initialize ( ) : void |
Initializes the required components and creates initial Mesh.
|
|
PropertyChanged ( ) : void |
Called when any property connected with the mesh is changed.
|
|
UpdateCollider ( ) : void |
Update the collider boundaries.
|
Méthode | Description | |
---|---|---|
ClearMeshes ( ) : void |
Removes the meshes from the memory.
|
|
CreateSplashLine ( |
||
CreateSplashNormalized ( Vector2 center, float radius, float force ) : void |
Creates a circular drop splash on the fluid surface (if available).
|
|
FixedUpdate ( ) : void | ||
OnDestroy ( ) : void | ||
OnDrawGizmos ( ) : void | ||
SizeToGridResolution ( Vector2 size, int resolution ) : |
The size to grid resolution.
|
|
Start ( ) : void | ||
StepSimulation ( ) : void | ||
UpdateComponents ( ) : void | ||
UpdateProperties ( ) : void |
Called when any property that defines the water simulation, changes.
|
public CreateSplash ( Vector3 start, Vector3 end, float radius, float force ) : void | ||
start | Vector3 | /// The start point in world space coordinates. /// |
end | Vector3 | /// The end point in world space coordinates. /// |
radius | float | /// The radius of the splash in world space units. /// |
force | float | /// The amount of force applied to create the splash. /// |
Résultat | void |
public CreateSplash ( Vector3 center, float radius, float force ) : void | ||
center | Vector3 | /// The center of the splash in world space coordinates. /// |
radius | float | /// The radius of the splash in world space units. /// |
force | float | /// The amount of force applied to create the splash. /// |
Résultat | void |
public ErodeObstructionField ( int iterations, byte field ) : byte[] | ||
iterations | int | |
field | byte | |
Résultat | byte[] |
protected GetGameObjectsWithTagInBounds ( string searchTag, |
||
searchTag | string | /// The tag to find GameObjects with. /// |
bounds | /// The bounds to search within. /// | |
Résultat | UnityEngine.GameObject[] |
public GetObstructionInfoArray ( |
||
gameObjects |
/// The array of |
|
Résultat | ObstructionInfo[] |
public GetWaterLevel ( Vector3 position ) : float | ||
position | Vector3 | /// The position at which to query the water level. /// |
Résultat | float |
public GetWaterLevel ( float x, float z ) : float | ||
x | float | /// The x coordinate. /// |
z | float | /// The z coordinate. /// |
Résultat | float |
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 |