C# Class LostPolygon.DynamicWaterSystem.DynamicWaterSolverAdvancedAmbient

Inheritance: DynamicWaterSolverSimulation
Afficher le fichier Open project: caffeinatedguy/Limbs

Méthodes publiques

Свойство Type Description
OnlyAmbient bool
Waves Wave[]

Méthodes publiques

Méthode 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 méthode

public CreateSplashNormalized ( Vector2 center, float radius, float force ) : void
center Vector2
radius float
force float
Résultat void

GetFieldValue() public méthode

public GetFieldValue ( float x, float z ) : float
x float
z float
Résultat float

Initialize() public méthode

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

StepSimulation() public méthode

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). ///
Résultat void

Property Details

OnlyAmbient public_oe property

Value indicating whether only ambient waves have to be simulated.
public bool OnlyAmbient
Résultat bool

Waves public_oe property

public Wave[] Waves
Résultat Wave[]