C# Class LostPolygon.DynamicWaterSystem.DynamicWaterSolverAdvancedAmbient

Inheritance: DynamicWaterSolverSimulation
Mostrar archivo Open project: caffeinatedguy/Limbs

Public Properties

Property Type Description
OnlyAmbient bool
Waves Wave[]

Public Methods

Method Description
CreateSplashNormalized ( Vector2 center, float radius, float force ) : void
GetFieldValue ( float x, float z ) : float
Initialize ( Vector2Int gridSize ) : void

The initialization method. Called by DynamicWater.

StepSimulation ( float speed, float damping ) : void

Executes the simulation step.

Method Details

CreateSplashNormalized() public method

public CreateSplashNormalized ( Vector2 center, float radius, float force ) : void
center Vector2
radius float
force float
return void

GetFieldValue() public method

public GetFieldValue ( float x, float z ) : float
x float
z float
return float

Initialize() public method

The initialization method. Called by DynamicWater.
public Initialize ( Vector2Int gridSize ) : void
gridSize Vector2Int /// The simulation grid resolution. ///
return void

StepSimulation() public method

Executes the simulation step.
public StepSimulation ( float speed, float damping ) : void
speed float /// The overall simulation speed factor. ///
damping float /// The damping value (range 0-1). ///
return void

Property Details

OnlyAmbient public_oe property

Value indicating whether only ambient waves have to be simulated.
public bool OnlyAmbient
return bool

Waves public_oe property

public Wave[] Waves
return Wave[]