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

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

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

Свойство Тип Описание
OnlyAmbient bool
Waves Wave[]

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

Метод Описание
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.

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

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

public CreateSplashNormalized ( Vector2 center, float radius, float force ) : void
center Vector2
radius float
force float
Результат void

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

public GetFieldValue ( float x, float z ) : float
x float
z float
Результат 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

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

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

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

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

public Wave[] Waves
Результат Wave[]