C# 클래스 LostPolygon.DynamicWaterSystem.DynamicWaterSolverSimulation

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

보호된 프로퍼티들

프로퍼티 타입 설명
FieldSim float[]
FieldSimNew float[]
FieldSimSpeed float[]
_simulationSpeedNormalizationFactor float

공개 메소드들

메소드 설명
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. Automatically called by DynamicWater.

StepSimulation ( float speed, float damping ) : void

Executes the wave 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. Automatically called by DynamicWater.
public Initialize ( Vector2Int gridSize ) : void
gridSize Vector2Int /// Simulation grid resolution. ///
리턴 void

StepSimulation() 공개 메소드

Executes the wave simulation step.
public StepSimulation ( float speed, float damping ) : void
speed float /// Overall simulation speed factor. ///
damping float /// The damping value (range 0-1). ///
리턴 void

프로퍼티 상세

FieldSim 보호되어 있는 프로퍼티

protected float[] FieldSim
리턴 float[]

FieldSimNew 보호되어 있는 프로퍼티

protected float[] FieldSimNew
리턴 float[]

FieldSimSpeed 보호되어 있는 프로퍼티

protected float[] FieldSimSpeed
리턴 float[]

_simulationSpeedNormalizationFactor 보호되어 있는 프로퍼티

protected float _simulationSpeedNormalizationFactor
리턴 float