Свойство | Тип | Описание | |
---|---|---|---|
_canInteract | bool | ||
_field | float[] | ||
_fieldObstruction | byte[] | ||
_grid | |||
_isDirty | bool | ||
_isInitialized | bool |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
CreateSplashNormalized ( |
Creates a circular drop splash on the fluid surface.
|
Метод | Описание | |
---|---|---|
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. /// |
Результат | 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. /// |
Результат | void |
public abstract GetFieldValue ( float x, float z ) : float | ||
x | float | /// The x coordinate. /// |
z | float | /// The z coordinate. /// |
Результат | float |
public Initialize ( |
||
gridSize | /// The size in nodes of simulation grid. /// | |
Результат | void |
public abstract StepSimulation ( float speed, float damping ) : void | ||
speed | float | /// The overall simulation speed factor. /// |
damping | float | /// The damping value (range 0-1). /// |
Результат | void |
protected Vector2Int,LostPolygon.DynamicWaterSystem _grid | ||
Результат |