Свойство | Type | Description | |
---|---|---|---|
_canInteract | bool | ||
_field | float[] | ||
_fieldObstruction | byte[] | ||
_grid | |||
_isDirty | bool | ||
_isInitialized | bool |
Méthode | Description | |
---|---|---|
CreateSplashNormalized ( |
Creates a circular drop splash on the fluid surface.
|
|
GetFieldValue ( float x, float z ) : float |
Returns water level at the given position in simulation grid space.
|
|
Initialize ( |
The initialization method. Automatically called by DynamicWater.
|
|
StepSimulation ( float speed, float damping ) : void |
Executes the simulation step. This is the method where the wave simulation has to be written.
|
Méthode | Description | |
---|---|---|
CreateSplashNormalized ( |
Creates a circular drop splash on the fluid surface.
|
Méthode | Description | |
---|---|---|
Awake ( ) : void |
Ensures that DynamicWaterSolver is attached to the object having a DynamicWater component.
|
public abstract CreateSplashNormalized ( |
||
center | /// The center of the splash in simulation grid space. /// | |
radius | float | /// The radius of the splash. /// |
force | float | /// The amount of force applied to create the splash. /// |
Résultat | void |
protected CreateSplashNormalized ( |
||
center | /// The center of the splash in simulation grid space. /// | |
radius | float | /// The radius of the splash in simulation grid nodes. /// |
force | float | /// The amount of force applied to create the splash. /// |
field | float | /// The simulation state field to create splash on. /// |
Résultat | void |
public abstract GetFieldValue ( float x, float z ) : float | ||
x | float | /// The x coordinate. /// |
z | float | /// The z coordinate. /// |
Résultat | float |
public Initialize ( |
||
gridSize | /// The size in nodes of simulation grid. /// | |
Résultat | void |
public abstract StepSimulation ( float speed, float damping ) : void | ||
speed | float | /// The overall simulation speed factor. /// |
damping | float | /// The damping value (range 0-1). /// |
Résultat | void |
protected Vector2Int,LostPolygon.DynamicWaterSystem _grid | ||
Résultat |