C# Класс LostPolygon.DynamicWaterSystem.DynamicWaterSolverAmbientSimple

Наследование: DynamicWaterSolverSimulation
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
AmbientWaveFrequency float
AmbientWaveHeight float
AmbientWaveSpeed float
OnlyAmbient bool

Открытые методы

Метод Описание
CreateSplashNormalized ( Vector2 center, float radius, float force ) : void

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 ( Vector2Int gridSize ) : void

The initialization method. Called by DynamicWater.

StepSimulation ( float speed, float damping ) : void

Executes the simulation step.

Описание методов

CreateSplashNormalized() публичный Метод

Creates a circular drop splash on the fluid surface.
public CreateSplashNormalized ( Vector2 center, float radius, float force ) : void
center UnityEngine.Vector2 /// 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

GetFieldValue() публичный Метод

Returns water level at the given position in simulation grid space.
public GetFieldValue ( float x, float z ) : float
x float /// The x coordinate. ///
z float /// The z coordinate. ///
Результат float

Initialize() публичный Метод

The initialization method. Called by DynamicWater.
public Initialize ( Vector2Int gridSize ) : void
gridSize Vector2Int /// The simulation grid resolution. ///
Результат void

StepSimulation() публичный Метод

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). ///
Результат void

Описание свойств

AmbientWaveFrequency публичное свойство

The ambient wave frequency.
public float AmbientWaveFrequency
Результат float

AmbientWaveHeight публичное свойство

The ambient wave height.
public float AmbientWaveHeight
Результат float

AmbientWaveSpeed публичное свойство

The ambient wave simulation speed factor.
public float AmbientWaveSpeed
Результат float

OnlyAmbient публичное свойство

Value indicating whether only ambient waves have to be simulated.
public bool OnlyAmbient
Результат bool