프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_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 |