C# 클래스 LostPolygon.DynamicWaterSystem.DynamicWaterSolver

An abstract class representing the fluid wave function.
상속: UnityEngine.MonoBehaviour, IDynamicWaterSolverFieldState
파일 보기 프로젝트 열기: caffeinatedguy/Limbs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_canInteract bool
_field float[]
_fieldObstruction byte[]
_grid Vector2Int
_isDirty bool
_isInitialized 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. Automatically called by DynamicWater.

StepSimulation ( float speed, float damping ) : void

Executes the simulation step. This is the method where the wave simulation has to be written.

보호된 메소드들

메소드 설명
CreateSplashNormalized ( Vector2 center, float radius, float force, float &field ) : void

Creates a circular drop splash on the fluid surface.

비공개 메소드들

메소드 설명
Awake ( ) : void

Ensures that DynamicWaterSolver is attached to the object having a DynamicWater component.

메소드 상세

CreateSplashNormalized() 공개 추상적인 메소드

Creates a circular drop splash on the fluid surface.
public abstract 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

CreateSplashNormalized() 보호된 메소드

Creates a circular drop splash on the fluid surface.
protected CreateSplashNormalized ( Vector2 center, float radius, float force, float &field ) : void
center UnityEngine.Vector2 /// The center of the splash in simulation grid space. ///
radius float /// The radius of the splash in simulation grid nodes. ///
force float /// The amount of force applied to create the splash. ///
field float /// The simulation state field to create splash on. ///
리턴 void

GetFieldValue() 공개 추상적인 메소드

Returns water level at the given position in simulation grid space.
public abstract 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 /// The size in nodes of simulation grid. ///
리턴 void

StepSimulation() 공개 추상적인 메소드

Executes the simulation step. This is the method where the wave simulation has to be written.
public abstract StepSimulation ( float speed, float damping ) : void
speed float /// The overall simulation speed factor. ///
damping float /// The damping value (range 0-1). ///
리턴 void

프로퍼티 상세

_canInteract 보호되어 있는 프로퍼티

protected bool _canInteract
리턴 bool

_field 보호되어 있는 프로퍼티

protected float[] _field
리턴 float[]

_fieldObstruction 보호되어 있는 프로퍼티

protected byte[] _fieldObstruction
리턴 byte[]

_grid 보호되어 있는 프로퍼티

protected Vector2Int,LostPolygon.DynamicWaterSystem _grid
리턴 Vector2Int

_isDirty 보호되어 있는 프로퍼티

protected bool _isDirty
리턴 bool

_isInitialized 보호되어 있는 프로퍼티

protected bool _isInitialized
리턴 bool