C# 클래스 LostPolygon.DynamicWaterSystem.DynamicWaterSolverAmbientSimple

상속: DynamicWaterSolverSimulation
파일 보기 프로젝트 열기: caffeinatedguy/Limbs

공개 프로퍼티들

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